mirror of
https://gitea.com/gitea/blog.git
synced 2024-06-02 00:41:24 +05:30
simplify config
This commit is contained in:
parent
8fcb39224d
commit
0c70087f02
|
@ -44,7 +44,6 @@ kill_timeout = 5
|
||||||
GITEA__server__DOMAIN="gitea-on-fly.fly.dev"
|
GITEA__server__DOMAIN="gitea-on-fly.fly.dev"
|
||||||
GITEA__server__SSH_DOMAIN="gitea-on-fly.fly.dev"
|
GITEA__server__SSH_DOMAIN="gitea-on-fly.fly.dev"
|
||||||
GITEA__server__ROOT_URL="https://gitea-on-fly.fly.dev"
|
GITEA__server__ROOT_URL="https://gitea-on-fly.fly.dev"
|
||||||
GITEA__server__REDIRECT_OTHER_PORT="true" # listen on port 80, and redirect to "ROOT_URL"
|
|
||||||
GITEA__security__INSTALL_LOCK="true" # Don't show installer
|
GITEA__security__INSTALL_LOCK="true" # Don't show installer
|
||||||
# GITEA__service__DISABLE_REGISTRATION="true" # TODO: uncomment once you have created your first user
|
# GITEA__service__DISABLE_REGISTRATION="true" # TODO: uncomment once you have created your first user
|
||||||
|
|
||||||
|
@ -60,19 +59,15 @@ kill_timeout = 5
|
||||||
[[services.ports]]
|
[[services.ports]]
|
||||||
port = 22
|
port = 22
|
||||||
|
|
||||||
# for http->https redirect
|
|
||||||
[[services]]
|
|
||||||
internal_port = 80
|
|
||||||
protocol = "tcp"
|
|
||||||
|
|
||||||
[[services.ports]]
|
|
||||||
handlers = ["http"]
|
|
||||||
port = 80
|
|
||||||
|
|
||||||
# https traffic
|
# https traffic
|
||||||
[[services]]
|
[[services]]
|
||||||
internal_port = 3000
|
internal_port = 3000
|
||||||
protocol = "tcp"
|
protocol = "tcp"
|
||||||
|
|
||||||
|
[[services.ports]]
|
||||||
|
handlers = ["http"]
|
||||||
|
force_https = true
|
||||||
|
port = 80
|
||||||
|
|
||||||
[[services.ports]]
|
[[services.ports]]
|
||||||
handlers = ["tls", "http"]
|
handlers = ["tls", "http"]
|
||||||
|
|
Loading…
Reference in a new issue