Improve deployment config

This commit is contained in:
Minecon724 2025-04-02 17:04:21 +02:00
commit 733e8517e3
Signed by: Minecon724
GPG key ID: A02E6E67AB961189
2 changed files with 9 additions and 2 deletions

View file

@ -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'

View file

@ -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