Skip to content

Commit

Permalink
Merge pull request #4 from thisiscleverson/development
Browse files Browse the repository at this point in the history
remoção da variavel de ambiente
  • Loading branch information
thisiscleverson authored Mar 29, 2024
2 parents 707bcb2 + bdd3d17 commit 0da9595
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
3 changes: 0 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ services:
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- /etc/letsencrypt:/etc/letsencrypt:ro
environment:
- FLASK_SERVER_ADDR=app:5000
- DOMAIN=cleverson.online
depends_on:
- app
ports:
Expand Down
12 changes: 6 additions & 6 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ http {
listen 80;
listen [::]:80;

server_name $DOMAIN www.$DOMAIN;
server_name cleverson.online www.cleverson.online;

location / {
proxy_pass http://$FLASK_SERVER_ADDR;
proxy_pass http://app:5000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand All @@ -22,17 +22,17 @@ http {
server {
listen [::]:443 ssl http2;
listen 443 ssl http2;
server_name $DOMAIN www.$DOMAIN;
server_name cleverson.online www.cleverson.online;

ssl_certificate /etc/letsencrypt/live/$DOMAIN/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/$DOMAIN/privkey.pem;
ssl_certificate /etc/letsencrypt/live/cleverson.online/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/cleverson.online/privkey.pem;

location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_pass http://$FLASK_SERVER_ADDR;
proxy_pass http://app:5000;
}

}
Expand Down

0 comments on commit 0da9595

Please sign in to comment.