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]
|
||||
internal_port = 5000
|
||||
force_https = true
|
||||
auto_stop_machines = 'stop'
|
||||
auto_stop_machines = 'suspend'
|
||||
auto_start_machines = true
|
||||
min_machines_running = 1
|
||||
processes = ['app']
|
||||
|
||||
[[http_service.checks]]
|
||||
grace_period = "10s"
|
||||
interval = "30s"
|
||||
method = "GET"
|
||||
timeout = "5s"
|
||||
path = "/"
|
||||
|
||||
[[vm]]
|
||||
size = 'shared-cpu-1x'
|
||||
memory = '256mb'
|
||||
|
|
|
@ -47,7 +47,7 @@ elif app.config['SESSION_TYPE'] == 'filesystem':
|
|||
app.config['SESSION_KEY_PREFIX'] = 'anonchat_session:'
|
||||
|
||||
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
|
||||
# Parameters source: https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#argon2id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue