moviewyrm/nginx/default.conf

66 lines
1.3 KiB
Text
Raw Normal View History

upstream web {
server web:8000;
}
server {
listen 80;
location / {
proxy_pass http://web;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
location /images/ {
alias /app/images/;
}
location /static/ {
alias /app/static/;
}
}
2020-10-05 21:22:37 +00:00
# PROD version
#
#server {
# listen [::]:80;
# listen 80;
#
2020-10-05 21:25:53 +00:00
# server_name your-domain.com www.your-domain.com;
2020-10-05 21:22:37 +00:00
#
# location ~ /.well-known/acme-challenge {
# allow all;
# root /var/www/certbot;
# }
#
# # redirect http to https www
2020-10-05 21:25:53 +00:00
# return 301 https://www.your-domain.com$request_uri;
2020-10-05 21:22:37 +00:00
#}
#
#server {
# listen [::]:443 ssl http2;
# listen 443 ssl http2;
#
2020-10-05 21:25:53 +00:00
# server_name your-domain.com;
2020-10-05 21:22:37 +00:00
#
# # SSL code
2020-10-05 21:25:53 +00:00
# ssl_certificate /etc/nginx/ssl/live/your-domain.com/fullchain.pem;
# ssl_certificate_key /etc/nginx/ssl/live/your-domain.com/privkey.pem;
2020-10-05 21:22:37 +00:00
#
# location / {
# proxy_pass http://web;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header Host $host;
# proxy_redirect off;
# }
#
# location /images/ {
# alias /app/images/;
# }
#
# location /static/ {
# alias /app/static/;
# }
#}