36 lines
927 B
Plaintext
36 lines
927 B
Plaintext
server {
|
|
listen 80;
|
|
server_name vk.daemonlord.ru;
|
|
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
server_name vk.daemonlord.ru;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/vk.daemonlord.ru/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/vk.daemonlord.ru/privkey.pem;
|
|
|
|
location = /vk/callback {
|
|
proxy_pass http://127.0.0.1:8787/vk/callback;
|
|
proxy_http_version 1.1;
|
|
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 https;
|
|
proxy_buffering off;
|
|
}
|
|
|
|
location = /health {
|
|
proxy_pass http://127.0.0.1:8787/health;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
}
|
|
|
|
location / {
|
|
return 404;
|
|
}
|
|
}
|