Improve deployment config
This commit is contained in:
parent
4aff3e1634
commit
733e8517e3
2 changed files with 9 additions and 2 deletions
9
fly.toml
9
fly.toml
|
|
@ -14,11 +14,18 @@ primary_region = 'ams'
|
||||||
[http_service]
|
[http_service]
|
||||||
internal_port = 5000
|
internal_port = 5000
|
||||||
force_https = true
|
force_https = true
|
||||||
auto_stop_machines = 'stop'
|
auto_stop_machines = 'suspend'
|
||||||
auto_start_machines = true
|
auto_start_machines = true
|
||||||
min_machines_running = 1
|
min_machines_running = 1
|
||||||
processes = ['app']
|
processes = ['app']
|
||||||
|
|
||||||
|
[[http_service.checks]]
|
||||||
|
grace_period = "10s"
|
||||||
|
interval = "30s"
|
||||||
|
method = "GET"
|
||||||
|
timeout = "5s"
|
||||||
|
path = "/"
|
||||||
|
|
||||||
[[vm]]
|
[[vm]]
|
||||||
size = 'shared-cpu-1x'
|
size = 'shared-cpu-1x'
|
||||||
memory = '256mb'
|
memory = '256mb'
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ elif app.config['SESSION_TYPE'] == 'filesystem':
|
||||||
app.config['SESSION_KEY_PREFIX'] = 'anonchat_session:'
|
app.config['SESSION_KEY_PREFIX'] = 'anonchat_session:'
|
||||||
|
|
||||||
if app.config['BEHIND_PROXY']:
|
if app.config['BEHIND_PROXY']:
|
||||||
app.wsgi_app = ProxyFix(app.wsgi_app)
|
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=2)
|
||||||
|
|
||||||
# Initialize password hasher
|
# Initialize password hasher
|
||||||
# Parameters source: https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#argon2id
|
# Parameters source: https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#argon2id
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue