Some small improvements

This commit is contained in:
Lunny Xiao
2024-06-06 22:49:46 +08:00
parent 3d26dfa42d
commit c88deee1a6
21 changed files with 72 additions and 68 deletions

View File

@@ -25,7 +25,7 @@ Note: For use in the official Gitea Docker image, please configure with the SMTP
Note: For Internet-facing sites consult documentation of your MTA for instructions to send emails over TLS. Also set up SPF, DMARC, and DKIM DNS records to make emails sent be accepted as legitimate by various email providers.
```ini
```ini title="app.ini"
[mailer]
ENABLED = true
FROM = gitea@mydomain.com
@@ -38,7 +38,7 @@ SENDMAIL_ARGS = "--" ; most "sendmail" programs take options, "--" will prevent
Directly use SMTP server as relay. This option is useful if you don't want to set up MTA on your instance but you have an account at email provider.
```ini
```ini title="app.ini"
[mailer]
ENABLED = true
FROM = gitea@mydomain.com
@@ -69,7 +69,7 @@ Note that Implicit TLS is recommended by [RFC8314](https://tools.ietf.org/html/r
The following configuration should work with GMail's SMTP server:
```ini
```ini title="app.ini"
[mailer]
ENABLED = true
HOST = smtp.gmail.com:465 ; Remove this line for Gitea >= 1.18.0

View File

@@ -17,7 +17,7 @@ menu:
The following changes are made in C:\gitea\custom\conf\app.ini:
```
```ini title="app.ini"
RUN_USER = COMPUTERNAME$
```
@@ -29,7 +29,7 @@ COMPUTERNAME is whatever the response is from `echo %COMPUTERNAME%` on the comma
If you use SQLite3, change the `PATH` to include the full path:
```
```ini title="app.ini"
[database]
PATH = c:/gitea/data/gitea.db
```
@@ -39,7 +39,7 @@ PATH = c:/gitea/data/gitea.db
To register Gitea as a Windows service, open a command prompt (cmd) as an Administrator,
then run the following command:
```
```sh
sc.exe create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\""
```
@@ -53,7 +53,7 @@ that was configured).
To add a startup dependency to the Gitea Windows service (eg Mysql, Mariadb), as an Administrator, then run the following command:
```
```sh
sc.exe config gitea depend= mariadb
```
@@ -63,6 +63,6 @@ This will ensure that when the Windows machine restarts, the automatic starting
To unregister Gitea as a service, open a command prompt (cmd) as an Administrator and run:
```
```sh
sc.exe delete gitea
```

View File

@@ -27,7 +27,7 @@ Note: For use in the official Gitea Docker image, please configure with the SMTP
Note: For Internet-facing sites consult documentation of your MTA for instructions to send emails over TLS. Also set up SPF, DMARC, and DKIM DNS records to make emails sent be accepted as legitimate by various email providers.
```ini
```ini title="app.ini"
[mailer]
ENABLED = true
FROM = gitea@mydomain.com
@@ -40,7 +40,7 @@ SENDMAIL_ARGS = "--" ; most "sendmail" programs take options, "--" will prevent
Directly use SMTP server as relay. This option is useful if you don't want to set up MTA on your instance but you have an account at email provider.
```ini
```ini title="app.ini"
[mailer]
ENABLED = true
FROM = gitea@mydomain.com
@@ -70,7 +70,7 @@ Note that Implicit TLS is recommended by [RFC8314](https://tools.ietf.org/html/r
The following configuration should work with GMail's SMTP server:
```ini
```ini title="app.ini"
[mailer]
ENABLED = true
HOST = smtp.gmail.com:465 ; Remove this line for Gitea >= 1.18.0

View File

@@ -19,7 +19,7 @@ menu:
The following changes are made in C:\gitea\custom\conf\app.ini:
```
```ini title="app.ini"
RUN_USER = COMPUTERNAME$
```
@@ -31,7 +31,7 @@ COMPUTERNAME is whatever the response is from `echo %COMPUTERNAME%` on the comma
If you use SQLite3, change the `PATH` to include the full path:
```
```ini title="app.ini"
[database]
PATH = c:/gitea/data/gitea.db
```
@@ -41,7 +41,7 @@ PATH = c:/gitea/data/gitea.db
To register Gitea as a Windows service, open a command prompt (cmd) as an Administrator,
then run the following command:
```
```sh
sc.exe create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\""
```
@@ -55,7 +55,7 @@ that was configured).
To add a startup dependency to the Gitea Windows service (eg Mysql, Mariadb), as an Administrator, then run the following command:
```
```sh
sc.exe config gitea depend= mariadb
```
@@ -65,6 +65,6 @@ This will ensure that when the Windows machine restarts, the automatic starting
To unregister Gitea as a service, open a command prompt (cmd) as an Administrator and run:
```
```sh
sc.exe delete gitea
```

View File

@@ -27,7 +27,7 @@ Note: For use in the official Gitea Docker image, please configure with the SMTP
Note: For Internet-facing sites consult documentation of your MTA for instructions to send emails over TLS. Also set up SPF, DMARC, and DKIM DNS records to make emails sent be accepted as legitimate by various email providers.
```ini
```ini title="app.ini"
[mailer]
ENABLED = true
FROM = gitea@mydomain.com
@@ -40,7 +40,7 @@ SENDMAIL_ARGS = "--" ; most "sendmail" programs take options, "--" will prevent
Directly use SMTP server as relay. This option is useful if you don't want to set up MTA on your instance but you have an account at email provider.
```ini
```ini title="app.ini"
[mailer]
ENABLED = true
FROM = gitea@mydomain.com
@@ -70,7 +70,7 @@ Note that Implicit TLS is recommended by [RFC8314](https://tools.ietf.org/html/r
The following configuration should work with GMail's SMTP server:
```ini
```ini title="app.ini"
[mailer]
ENABLED = true
HOST = smtp.gmail.com:465 ; Remove this line for Gitea >= 1.18.0

View File

@@ -27,7 +27,7 @@ Note: For use in the official Gitea Docker image, please configure with the SMTP
Note: For Internet-facing sites consult documentation of your MTA for instructions to send emails over TLS. Also set up SPF, DMARC, and DKIM DNS records to make emails sent be accepted as legitimate by various email providers.
```ini
```ini title="app.ini"
[mailer]
ENABLED = true
FROM = gitea@mydomain.com
@@ -40,7 +40,7 @@ SENDMAIL_ARGS = "--" ; most "sendmail" programs take options, "--" will prevent
Directly use SMTP server as relay. This option is useful if you don't want to set up MTA on your instance but you have an account at email provider.
```ini
```ini title="app.ini"
[mailer]
ENABLED = true
FROM = gitea@mydomain.com
@@ -70,7 +70,7 @@ Note that Implicit TLS is recommended by [RFC8314](https://tools.ietf.org/html/r
The following configuration should work with GMail's SMTP server:
```ini
```ini title="app.ini"
[mailer]
ENABLED = true
HOST = smtp.gmail.com:465 ; Remove this line for Gitea >= 1.18.0

View File

@@ -20,7 +20,7 @@ menu:
The following changes are made in C:\gitea\custom\conf\app.ini:
```
```ini title="app.ini"
RUN_USER = COMPUTERNAME$
```
@@ -32,7 +32,7 @@ COMPUTERNAME is whatever the response is from `echo %COMPUTERNAME%` on the comma
If you use SQLite3, change the `PATH` to include the full path:
```
```ini title="app.ini"
[database]
PATH = c:/gitea/data/gitea.db
```
@@ -42,7 +42,7 @@ PATH = c:/gitea/data/gitea.db
To register Gitea as a Windows service, open a command prompt (cmd) as an Administrator,
then run the following command:
```
```sh
sc.exe create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\""
```
@@ -57,7 +57,7 @@ that was configured).
It was observed that on loaded systems during boot Gitea service may fail to start with timeout records in Windows Event Log.
In that case change startup type to `Automatic-Delayed`. This can be done during service creation, or by running config command
```
```sh
sc.exe config gitea start= delayed-auto
```
@@ -65,7 +65,7 @@ sc.exe config gitea start= delayed-auto
To add a startup dependency to the Gitea Windows service (eg Mysql, Mariadb), as an Administrator, then run the following command:
```
```sh
sc.exe config gitea depend= mariadb
```
@@ -75,6 +75,6 @@ This will ensure that when the Windows machine restarts, the automatic starting
To unregister Gitea as a Windows service, open a command prompt (cmd) as an Administrator and run:
```
```sh
sc.exe delete gitea
```