2022-02-05 14:59:06 -05:00

26 lines
504 B
Plaintext

server {
listen 80 default_server;
listen 443 ssl;
root /app/budge/frontend/build;
index index.php index.html index.htm;
server_name _;
ssl_certificate /config/keys/cert.crt;
ssl_certificate_key /config/keys/cert.key;
client_max_body_size 0;
location / {
try_files $uri $uri/ /index.html;
}
location /api/ {
rewrite /foo/(.*) /$1 break;
proxy_set_header Upgrade $http_upgrade;
proxy_pass http://localhost:5000/;
}
}