2 Commits

Author SHA1 Message Date
a9a8a36cb9 logging, 3
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2024-01-31 14:53:04 +01:00
845e4ec673 logging, 2
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2024-01-31 14:46:18 +01:00
2 changed files with 4 additions and 2 deletions

View File

@ -107,6 +107,8 @@ def convert_decimal(value):
@app.route('/add_nutrition', methods=['POST'])
@oidc.accept_token(['openid'])
def add_nutrition():
app.logger.info("add_nutrition")
food = request.form.get('food')
kcal = convert_decimal(request.form.get('kcal'))
ew = convert_decimal(request.form.get('ew'))
@ -173,7 +175,7 @@ def get_database_entries():
if conn:
conn.close()
app = ProxyFix(app, x_for=1, x_host=1)
exposed_app = ProxyFix(app, x_for=1, x_host=1)

View File

@ -1,6 +1,6 @@
#!/bin/sh
gunicorn 'Run:app' --bind 0.0.0.0:8080 --log-level=debug --workers=4
gunicorn 'Run:exposed_app' --bind 0.0.0.0:8080 --log-level=debug --workers=4