-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
(web):baby flask: undo changes
1 parent
2eb5e9a
commit 467c6af
Showing
6 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
# version: '3' | ||
version: '3' | ||
services: | ||
web: | ||
build: | ||
context: ./setup | ||
dockerfile: Dockerfile | ||
image: ghcr.io/cybermouflons/gtbq-2024/baby-flask:latest | ||
ports: | ||
- 5000:5000 | ||
- 1337:80 | ||
environment: | ||
- FLASK_APP=/app/app.py | ||
- FLASK_ENV=development | ||
volumes: | ||
- ./setup/app/:/app | ||
- /etc/machine-id:/etc/machine-id | ||
# - ./setup/app:/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
server { | ||
|
||
listen 80; | ||
|
||
location / { | ||
proxy_pass http://127.0.0.1:5000; | ||
proxy_pass_header Server; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header Host 127.0.0.1; | ||
proxy_redirect off; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters