You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
593 B
20 lines
593 B
server {
|
|
listen 80;
|
|
server_name _;
|
|
client_max_body_size 250m;
|
|
client_body_buffer_size 250m;
|
|
root /usr/share/nginx/html;
|
|
location /api/ {
|
|
proxy_pass http://api:3000;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
location /admin/pghero {
|
|
proxy_pass http://api:3000;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
location / { try_files $uri $uri/ /index.html; }
|
|
}
|