Skip to content
Snippets Groups Projects
site.conf 822 B
Newer Older
Hugo SUBTIL's avatar
Hugo SUBTIL committed
        listen 443 ssl;
        server_name         localhost;
        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;
Guilhem CARRON's avatar
Guilhem CARRON committed
            root /usr/share/nginx/html;
            index index.html index.htm;
            try_files $uri $uri/ /index.html =404;
        }
Hugo SUBTIL's avatar
Hugo SUBTIL committed
        location /api {  
            proxy_pass https://backend:1443/api;

Guilhem CARRON's avatar
Guilhem CARRON committed
        }
        location /OAuth2Login {
Hugo SUBTIL's avatar
Hugo SUBTIL committed
            proxy_pass https://backend:1443/OAuth2Login;
Guilhem CARRON's avatar
Guilhem CARRON committed
        }
        location /OAuth2Callback {
Hugo SUBTIL's avatar
Hugo SUBTIL committed
            proxy_pass https://backend:1443/OAuth2Callback;
Guilhem CARRON's avatar
Guilhem CARRON committed
        }
Hugo SUBTIL's avatar
Hugo SUBTIL committed
        location /Logout {            
            proxy_pass https://backend:1443/Logout;