Skip to content
Snippets Groups Projects
Commit 3704836f authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

Add nginx conf

parent 008a0b90
No related branches found
No related tags found
2 merge requests!7feat: add front office,!5Https test
......@@ -3,13 +3,27 @@ server {
server_name localhost;
location / {
proxy_pass http://front:3000;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
add_header Access-Control-Allow-Origin *;
proxy_ssl_certificate /etc/nginx/cert.pem;
proxy_ssl_certificate_key /etc/nginx/key.pem;
}
location /api {
proxy_pass http://backend:1443/api;
add_header Access-Control-Allow-Origin *;
}
location /OAuth2Login {
proxy_pass http://backend:1443/OAuth2Login;
add_header Access-Control-Allow-Origin *;
}
location /OAuth2Callback {
proxy_pass http://backend:1443/OAuth2Callback;
add_header Access-Control-Allow-Origin *;
}
location /Logout {
proxy_pass http://backend:1443/Logout;
add_header Access-Control-Allow-Origin *;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment