zkt21/z1/nginx/sites-enabled/flask_project

18 lines
355 B
Plaintext
Raw Normal View History

2021-04-04 00:17:49 +00:00
server {
listen 80;
server_name example.org;
charset utf-8;
location /static {
alias /usr/src/app/static;
}
location / {
proxy_pass http://web:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}