64 lines
1.5 KiB
Nginx Configuration File
64 lines
1.5 KiB
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
location = /apps/ecospecies {
|
|
return 301 /apps/ecospecies/;
|
|
}
|
|
|
|
location /api/ {
|
|
proxy_pass http://api:8000/api/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
|
|
location /apps/ecospecies/api/ {
|
|
rewrite ^/apps/ecospecies/api/(.*)$ /api/$1 break;
|
|
proxy_pass http://api:8000;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
|
|
location /healthz {
|
|
proxy_pass http://api:8000/healthz;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
location /apps/ecospecies/healthz {
|
|
proxy_pass http://api:8000/healthz;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
location /readyz {
|
|
proxy_pass http://api:8000/readyz;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
location /apps/ecospecies/readyz {
|
|
proxy_pass http://api:8000/readyz;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location /apps/ecospecies/ {
|
|
rewrite ^/apps/ecospecies/(.*)$ /$1 break;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|