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

add https only

parent f4c5db70
No related branches found
No related tags found
2 merge requests!8local- conf,!7feat: add front office
Pipeline #15485 passed
......@@ -16,7 +16,6 @@ services:
- ./cert.pem:/etc/nginx/cert.pem
- ./key.pem:/etc/nginx/key.pem
ports:
- 8080:8080
- 443:443
database:
......
server {
listen 8080;
listen 443 ssl;
server_name local;
ssl_certificate /etc/nginx/cert.pem;
ssl_certificate_key /etc/nginx/key.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
......@@ -19,23 +23,4 @@ server {
location /Logout {
proxy_pass https://backend:1443/Logout;
}
}
server {
listen 443 ssl;
server_name local;
ssl_certificate /etc/nginx/cert.pem;
ssl_certificate_key /etc/nginx/key.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_pass http://localhost:8080;
}
location /OAuth2Callback {
proxy_pass https://backend:1443/OAuth2Callback;
}
}
\ No newline at end of file
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