0. Get Office 365
Refer to the article on this site:
Get genuine Microsoft Office 365 for free
https://blog.tsinbei.com/archives/258/
The following assumes that you have obtained a subscription and logged in as Administrator. For registration problems, please go to the comment area under the link above; if you bought an account elsewhere, if you have any questions, go to the after-sales service.
1. Install MS365 Renew X
1.1, default configuration
implement:
1 | docker run -d \ -p 1066:1066 \ --name RenewX \ gladtbam/ms365_e5_renewx:latest |
Reverse proxy 127.0.0.1:1066
, default password 123456
, remember to modify it in time!
1.2, custom configuration
implement:
1 | docker run -d \ -p 1066:1066 \ -v $PWD/Deploy:/renewx/Deploy \ -v $PWD/appdata:/renewx/appdata \ --name RenewX \ gladtbam/ms365_e5_renewx:latest |
After startup, a Deploy
folder will appear in the current directory, create a new Config.xml
in the Deploy
folder, and fill in:
1 | <?xml version="1.0" encoding="utf-8" ?> <Configuration> <!--Site server basic configuration--> <Serivce> <!--Service access port--> <Port>1066</Port> <!--Administrator password (administrator login route/Admin/Login) Important: must be changed before first startup --> <LoginPassword>12345678</LoginPassword> <!--Whether to enable kernel multithreading support --> <CoreMultiThread>true</CoreMultiThread> <!--Website record number (optional)--> <ICP></ICP> <!--The jump link of the filing management inquiry institution (optional)--> <ICPLink>https://beian.miit.gov.cn</ICPLink> </Serivce> <!--Site Kestrel server HTTPS configuration (only supports IIS certificate type, that is, certificate in PFX format) --> <HTTPS> <!--Whether Kestrel enables HTTPS (SSL encrypted transmission)--> <Enable>false</Enable> <!--SSL certificate file name (the SSL certificate in PFX format needs to be placed in the Deploy folder of the same level directory as the configuration file) such as e5.sundayrx.net.pfx--> <!--If you leave it blank, the Dev localhost local certificate will be used by default--> <Certificate></Certificate> <!--SSL certificate key (access key of PFX certificate)--> <Password></Password> </HTTPS> <!--Share the site configuration, if you don’t share it, you can ignore the following content (if you want to share the site, please prepare the following required configuration information and HTTPS must be enabled in the configuration)--> <ShareSite> <!-- Whether to enable site sharing --> <Enable>false</Enable> <!--SMTP mail sending support--> <SMTP> <!--Sending email address--> <Email></Email> <!--Mailbox key--> <Password></Password> <!--SMTP server address--> <Host></Host> <!--SMTP server port--> <Port>587</Port> <!--Whether the SMTP server uses SSL transmission--> <EnableSSL>true</EnableSSL> </SMTP> <!--Third-party OAuth login support (at least enable the following OAuth, otherwise other users cannot register)--> <OAuth> <!--Microsoft login authorization--> <Microsoft> <!--Whether to enable this OAuth--> <Enable>true</Enable> <!--Application Id--> <ClientId></ClientId> <!--Application Access Secrets--> <ClientSecret></ClientSecret> </Microsoft> <!--GitHub login authorization--> <Github> <!--Whether to enable this OAuth--> <Enable>true</Enable> <!--Application Id--> <ClientId></ClientId> <!--Application Access Secrets--> <ClientSecret></ClientSecret> </Github> </OAuth> <!--Site System Settings--> <System> <!--Whether user registration is allowed by default after the site is started, it is recommended to be false--> <AllowRegister>false</AllowRegister> <!--The default announcement after the site starts (please use 
 for line breaks) --> <Notice></Notice> <!--site operator--> <Master></Master> <!--site operator promotion link--> <MasterLink></MasterLink> <!--Default quota for new site users--> <DefaultQuota>1</DefaultQuota> <!--Site automatic amnesty time interval (unit: day, at least 30 days) --> <AutoSpecialPardonInterval>30</AutoSpecialPardonInterval> </System> </ShareSite> </Configuration> |
If you use it yourself, you only need to change the password.
2. Configuration
2.1, AAD application registration
Open: Azure Management Center, search for application registration:
Fill in the necessary information:
Configure the redirection URL:
2.2, set permissions
Refer to MS365 Renew X
just built:
On the app registration page add:
If it is logged in and running, it is a delegated permission, and if it is not logged in, it is an application permission.
2.3 Authorization
Download the desktop application:
MS365 Renew
https://wwc.lanzoum.com/iI90H01l2isb
Unzip, start, click "Start" -> "Add account"
On the authorization page, log in with administrator account, check "Consent on behalf of the organization", and complete. All users under this account under this application ID do not need to authorize again.
3. Add account
Log in to the Docker program just running, add an account, and choose to log in/non-login to run,
- If you are logging in and running, you need to fill in the password and turn off Multiple Verification
- If it is running without login, you need to fill in the application secret and add it in the Azure Management Center
Under normal circumstances, the configuration is completed according to the above process, and you can check it after a few minutes, and it will show that the operation is successful.
It is recommended to hang a few more sub-users. I am a global account using one administrator+four sub-users, and now 4 subscriptions are running stably and renewing normally.
4, Error troubleshooting
If you keep getting errors:
The request with exception: The SSL connection could not be established, see inner exception. requestId
You can refer to the article on this site to solve:
Solve the .NET error that SSL cannot establish a connection
https://blog.tsinbei.com/archives/1192/
Docker website (16) MS 365 Renew X
Comments