lamassu-server/new-lamassu-admin/nginx/nginx.conf
Sérgio Salgado bd82285ecf feat: lamassu initial dockerize approach
feat: improve dockerization

feat: finished initial versions of dockerfiles

fix: small fixes to image building
2022-04-05 23:10:46 +01:00

28 lines
No EOL
639 B
Nginx Configuration File

server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri /index.html;
}
location /graphql {
proxy_pass https://lamassu-admin-server/graphql;
proxy_set_header Host $http_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;
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_send_timeout 300;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}