2016-11-09 13:54:47 +00:00
|
|
|
server {
|
2024-10-24 06:12:29 +00:00
|
|
|
listen 8080;
|
|
|
|
|
server_name apimanager;
|
2016-11-09 13:54:47 +00:00
|
|
|
|
2024-10-24 06:12:29 +00:00
|
|
|
location / {
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
# enable this if and only if you use HTTPS
|
|
|
|
|
# proxy_set_header X-Forwarded-Proto https;
|
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
|
proxy_redirect off;
|
|
|
|
|
proxy_pass http://127.0.0.1:8000;
|
|
|
|
|
}
|
2016-11-09 13:54:47 +00:00
|
|
|
|
2024-10-24 06:12:29 +00:00
|
|
|
location /en/static {
|
|
|
|
|
alias /usr/share/nginx/html;
|
|
|
|
|
}
|
|
|
|
|
location /es/static {
|
|
|
|
|
alias /usr/share/nginx/html;
|
|
|
|
|
}
|
|
|
|
|
location /static {
|
|
|
|
|
alias /usr/share/nginx/html;
|
|
|
|
|
}
|
|
|
|
|
}
|