You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/doc/installation/with-docker.en-us.md
+21
Original file line number
Diff line number
Diff line change
@@ -223,6 +223,27 @@ favorite browser to finalize the installation. Visit http://server-ip:3000 and f
223
223
installation wizard. If the database was started with the `docker-compose` setup as
224
224
documented above please note that `db` must be used as the database hostname.
225
225
226
+
## Environments variables
227
+
228
+
You can configure some of Gitea's settings via environment variables:
229
+
230
+
(Default values are provided in **bold**)
231
+
232
+
*`APP_NAME`: **"Gitea: Git with a cup of tea"**: Application name, used in the page title.
233
+
*`RUN_MODE`: **dev**: For performance and other purposes, change this to `prod` when deployed to a production environment.
234
+
*`SSH_DOMAIN`: **localhost**: Domain name of this server, used for displayed clone UR in Gitea's UI.
235
+
*`SSH_PORT`: **22**: SSH port displayed in clone URL.
236
+
*`DISABLE_SSH`: **false**: Disable SSH feature when it's not available.
237
+
*`HTTP_PORT`: **3000**: HTTP listen port.
238
+
*`ROOT_URL`: **""**: Overwrite the automatically generated public URL. This is useful if the internal and the external URL don't match (e.g. in Docker).
239
+
*`DB_TYPE`: **sqlite3**: The database type in use \[mysql, postgres, mssql, sqlite3\].
240
+
*`DB_HOST`: **localhost:3306**: Database host address and port.
241
+
*`DB_NAME`: **gitea**: Database name.
242
+
*`DB_USER`: **root**: Database username.
243
+
*`DB_PASSWD`: **"<empty>"**: Database user password. Use \`your password\` for quoting if you use special characters in the password.
244
+
*`INSTALL_LOCK`: **false**: Disallow access to the install page.
245
+
*`SECRET_KEY`: **""**: Global secret key. This should be changed. If this has a value and `INSTALL_LOCK` is empty, `INSTALL_LOCK` will automatically set to `true`.
246
+
226
247
# Customization
227
248
228
249
Customization files described [here](https://docs.gitea.io/en-us/customizing-gitea/) should
0 commit comments