File size: 909 Bytes
bd8cdd3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
events {
worker_connections 1024;
}
http {
server {
listen 7860;
client_max_body_size 150M;
# Shinyアプリへのプロキシ
location / {
proxy_pass http://localhost:9000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
proxy_set_header X-Forwarded-Proto $scheme; # プロトコル
proxy_set_header Request-Path $request_uri; # リクエストURLのパス部分
}
# Plumber APIへのプロキシ
location /api/ {
proxy_pass http://localhost:8000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
} |