Merge branch 'prod' into bump_prod

This commit is contained in:
Zeecka
2025-12-27 00:20:17 +01:00
committed by GitHub
5 changed files with 14 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 }}
+6
View File
@@ -255,6 +255,12 @@ 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:
"""Google Ads required file"""
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)
+2
View File
@@ -9,6 +9,8 @@
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css" rel="stylesheet"> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" /> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" />
<link href="/static/css/aperisolve.css" rel="stylesheet" /> <link href="/static/css/aperisolve.css" rel="stylesheet" />
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2324718887045017"
crossorigin="anonymous"></script>
</head> </head>
<body class="text-light"> <body class="text-light">
+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