2021-04-03 02:08:09 -04:00
|
|
|
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 / {
|
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
proxy_set_header Host $host;
|
2021-04-03 02:08:09 -04:00
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
2021-04-03 02:08:09 -04:00
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
2021-04-03 02:08:09 -04:00
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2021-04-03 02:08:09 -04:00
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
proxy_set_header X-Frame-Options SAMEORIGIN;
|
2021-04-03 02:08:09 -04:00
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
proxy_pass http://localhost:3121;
|
2021-04-03 02:08:09 -04:00
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
proxy_read_timeout 90;
|
2021-04-03 02:08:09 -04:00
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
proxy_redirect http://localhost:3121 https://board.ins;
|
2021-04-03 02:08:09 -04:00
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
}
|
2021-04-03 02:08:09 -04:00
|
|
|
|
|
|
|
location /api {
|
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
proxy_set_header Host $host;
|
2021-04-03 02:08:09 -04:00
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
2021-04-03 02:08:09 -04:00
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
2021-04-03 02:08:09 -04:00
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2021-04-03 02:08:09 -04:00
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
proxy_set_header X-Frame-Options SAMEORIGIN;
|
2021-04-03 02:08:09 -04:00
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
proxy_pass http://localhost:3892;
|
2021-04-03 02:08:09 -04:00
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
proxy_read_timeout 90;
|
2021-04-03 02:08:09 -04:00
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
proxy_redirect http://localhost:3892 https://board.ins/api;
|
2021-04-03 02:08:09 -04:00
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
}
|
2021-04-03 02:08:09 -04:00
|
|
|
}
|