configurations/Nginx/Server Blocks/board.ins.conf

49 lines
1.1 KiB
Plaintext

server {
listen 10.8.0.1:443 ssl http2;
#listen [::]:443 ssl http2;
server_name board.ins;
ssl_certificate /etc/nginx/ssl/board-ins.chain.crt;
ssl_certificate_key /etc/nginx/ssl/board-ins.key.pem;
location / {
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;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_pass http://localhost:3121;
proxy_read_timeout 90;
proxy_redirect http://localhost:3121 https://board.ins;
}
location /api {
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;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_pass http://localhost:3892;
proxy_read_timeout 90;
proxy_redirect http://localhost:3892 https://board.ins/api;
}
}