mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 09:07:04 +03:00
31 lines
782 B
Ruby
31 lines
782 B
Ruby
server {
|
|
listen 80;
|
|
server_name myinstalink.ru;
|
|
|
|
location / {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name myinstalink.ru;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/myinstalink.ru/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/myinstalink.ru/privkey.pem;
|
|
|
|
access_log /var/log/nginx/myinstalink.ru-access.log;
|
|
error_log /var/log/nginx/myinstalink.ru-error.log;
|
|
|
|
location /static/ {
|
|
alias /staticFiles/;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1: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;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
} |