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

add https only

parent f4c5db70
Branches
Tags
2 merge requests!8local- conf,!7feat: add front office
Pipeline #15485 passed
...@@ -16,7 +16,6 @@ services: ...@@ -16,7 +16,6 @@ services:
- ./cert.pem:/etc/nginx/cert.pem - ./cert.pem:/etc/nginx/cert.pem
- ./key.pem:/etc/nginx/key.pem - ./key.pem:/etc/nginx/key.pem
ports: ports:
- 8080:8080
- 443:443 - 443:443
database: database:
......
server { server {
listen 8080; listen 443 ssl;
server_name local; 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; root /usr/share/nginx/html;
index index.html index.htm; index index.html index.htm;
try_files $uri $uri/ /index.html =404; try_files $uri $uri/ /index.html =404;
...@@ -19,23 +23,4 @@ server { ...@@ -19,23 +23,4 @@ server {
location /Logout { location /Logout {
proxy_pass https://backend:1443/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.
Please register or to comment