Prod modifications

This commit is contained in:
dev
2025-06-14 18:44:05 +02:00
parent e050484b57
commit b527779919
4 changed files with 11 additions and 7 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ MAX_PENDING_TIME=600
MAX_STORE_TIME=259200 MAX_STORE_TIME=259200
FLASK_DEBUG=0 FLASK_DEBUG=0
FLASK_ENV=production FLASK_ENV=production
DB_URI=postgresql://aperiuser:aperipass@postgres:5432/aperisolve DB_URI=postgresql://aperiuser:iacyANdLeUREonIuMPorpHySTaIsHEAn@postgres:5432/aperisolve
RQ_DASHBOARD_REDIS_URL=redis://redis:6379/0 RQ_DASHBOARD_REDIS_URL=redis://redis:6379/0
POSTGRES_DB=aperisolve POSTGRES_DB=aperisolve
POSTGRES_USER=aperiuser POSTGRES_USER=aperiuser
POSTGRES_PASSWORD=aperipass POSTGRES_PASSWORD=iacyANdLeUREonIuMPorpHySTaIsHEAn
+1 -2
View File
@@ -39,6 +39,5 @@ jobs:
context: ./ context: ./
push: true push: true
tags: | tags: |
ghcr.io/${{ env.lower_actor }}/aperisolve:latest ghcr.io/${{ env.lower_actor }}/aperisolve:prod
ghcr.io/${{ env.lower_actor }}/aperisolve:${{ env.RELEASE_VERSION }}
+5
View File
@@ -246,6 +246,11 @@ def get_image(
return send_file(output_file, as_attachment=True) return send_file(output_file, as_attachment=True)
@app.route("/ads.txt")
def google_ads() -> str:
return "google.com, pub-2324718887045017, DIRECT, f08c47fec0942fa0"
if __name__ == "__main__": if __name__ == "__main__":
debug_mode = os.environ.get("FLASK_DEBUG", "false").lower() == "true" debug_mode = os.environ.get("FLASK_DEBUG", "false").lower() == "true"
app.run(host="0.0.0.0", port=5000, debug=debug_mode) app.run(host="0.0.0.0", port=5000, debug=debug_mode)
+3 -3
View File
@@ -1,11 +1,11 @@
services: services:
web: web:
image: ghcr.io/zeecka/aperisolve:latest image: ghcr.io/zeecka/aperisolve:prod
#build: . #build: .
container_name: aperisolve-web container_name: aperisolve-web
restart: always restart: always
ports: ports:
- "5000:5000" - "80:5000"
volumes: volumes:
- apresults:/aperisolve/results - apresults:/aperisolve/results
depends_on: depends_on:
@@ -19,7 +19,7 @@ services:
- .env - .env
worker: worker:
image: ghcr.io/zeecka/aperisolve:latest image: ghcr.io/zeecka/aperisolve:prod
#build: . #build: .
container_name: aperisolve-worker container_name: aperisolve-worker
restart: always restart: always