0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-11-25 18:19:26 -05:00

Merge pull request 'docs: keep 3000 as the default port' (#240) from earl-warren/website:wip-install-port into main

Reviewed-on: https://codeberg.org/forgejo/website/pulls/240
Reviewed-by: DanielGibson <danielgibson@noreply.codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
Earl Warren 2023-06-03 11:40:34 +00:00 committed by Caesar Schinas
commit b5b13c5a39
No known key found for this signature in database
GPG key ID: AE9108461BEA5ACF

View file

@ -228,10 +228,7 @@ Now enable and start the Forgejo service, so you can go on with the installation
## Forgejos web-based configuration ## Forgejos web-based configuration
You should now be able to access Forgejo in your local web browser, so open http://git.example.com/. You should now be able to access Forgejo in your local web browser, so open http://git.example.com:3000/.
> **NOTE:** by default Forgejo will listen to the port 3000 but that
> can be [changed to 80 with HTTP_PORT](../config-cheat-sheet).
If it doesn't work: If it doesn't work:
@ -247,7 +244,7 @@ The settings should be mostly self-explanatory, some hints:
- Select the correct database (SQLite3, or if you configured something else in the - Select the correct database (SQLite3, or if you configured something else in the
"Set up database" step above, select that and set the corresponding options) "Set up database" step above, select that and set the corresponding options)
- **Server Domain** should be `git.example.com` (or whatever you're actually using), - **Server Domain** should be `git.example.com` (or whatever you're actually using),
**Forgejo Base URL** should be `http://git.example.com` **Forgejo Base URL** should be `http://git.example.com:3000` (assuming you won't change HTTP_PORT a different value than 3000)
- Check the **Server and Third-Party Service Settings** settings for settings that look relevant - Check the **Server and Third-Party Service Settings** settings for settings that look relevant
for you. for you.
- It may make sense to create the administrator account right now (**Administrator Account Settings**), - It may make sense to create the administrator account right now (**Administrator Account Settings**),
@ -338,6 +335,11 @@ The following changes are recommended if dealing with many large files:
PROTOCOL = sendmail PROTOCOL = sendmail
FROM = "Forgejo Git" <noreply@yourdomain.com> FROM = "Forgejo Git" <noreply@yourdomain.com>
``` ```
- By default Forgejo will listen to the port 3000 but that can be [changed to 80 with HTTP_PORT](../config-cheat-sheet) like this:
```ini
[server]
HTTP_PORT = 80
```
When you're done editing the app.ini, save it and start the forgejo service again: When you're done editing the app.ini, save it and start the forgejo service again:
`# systemctl start forgejo.service` `# systemctl start forgejo.service`