mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 07:57:04 +03:00
26 lines
675 B
Plaintext
26 lines
675 B
Plaintext
server {
|
|
listen 8080 default_server;
|
|
listen [::]:8080 default_server;
|
|
server_name myinstalink.ru;
|
|
return 302 https://$server_name$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2 default_server;
|
|
listen [::]:443 ssl http2 default_server;
|
|
include snippets/self-signed.conf;
|
|
include snippets/ssl-params.conf;
|
|
|
|
access_log /var/log/nginx/instalinks-acces.log;
|
|
error_log /var/log/nginx/instalinks-error.log;
|
|
|
|
location /static/ {
|
|
alias /staticFiles/;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8000;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
} |