mirror of
https://github.com/stonith404/pingvin-share.git
synced 2024-11-18 21:30:12 +01:00
23 lines
644 B
Nginx Configuration File
23 lines
644 B
Nginx Configuration File
|
events {}
|
||
|
|
||
|
http {
|
||
|
server {
|
||
|
listen 3000;
|
||
|
client_max_body_size 100M;
|
||
|
|
||
|
location /api {
|
||
|
proxy_pass http://localhost:8080;
|
||
|
proxy_set_header X-Forwarded-Host $host:$server_port;
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
}
|
||
|
|
||
|
location / {
|
||
|
proxy_pass http://localhost:3333;
|
||
|
proxy_set_header X-Forwarded-Host $host:$server_port;
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
}
|
||
|
}
|
||
|
}
|