Merge pull request 'Add nginx reverse proxy for /api and /health to backend server' (#5) from feature/auth-invites into main
CI / build-and-push (push) Successful in 1m4s
CI / build-and-push (push) Successful in 1m4s
Reviewed-on: #5
This commit was merged in pull request #5.
This commit is contained in:
@@ -3,6 +3,17 @@ server {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://server:3001;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /health {
|
||||
proxy_pass http://server:3001;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user