Add dashboard container
This commit is contained in:
43
nginx.conf
43
nginx.conf
@@ -75,8 +75,8 @@ http {
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/personel.scarif.local.crt;
|
||||
ssl_certificate_key /etc/nginx/certs/personel.scarif.local.key;
|
||||
ssl_certificate /etc/nginx/certs/scarif.local.crt;
|
||||
ssl_certificate_key /etc/nginx/certs/scarif.local.key;
|
||||
|
||||
server_name personel.scarif.local;
|
||||
|
||||
@@ -211,8 +211,8 @@ http {
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/tower.scarif.local.crt;
|
||||
ssl_certificate_key /etc/nginx/certs/tower.scarif.local.key;
|
||||
ssl_certificate /etc/nginx/certs/scarif.local.crt;
|
||||
ssl_certificate_key /etc/nginx/certs/scarif.local.key;
|
||||
|
||||
server_name tower.scarif.local;
|
||||
|
||||
@@ -347,8 +347,8 @@ http {
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/labs.scarif.local.crt;
|
||||
ssl_certificate_key /etc/nginx/certs/labs.scarif.local.key;
|
||||
ssl_certificate /etc/nginx/certs/scarif.local.crt;
|
||||
ssl_certificate_key /etc/nginx/certs/scarif.local.key;
|
||||
|
||||
gzip_types text/plain text/css application/json application/x-javascript
|
||||
text/xml application/xml application/xml+rss text/javascript;
|
||||
@@ -359,4 +359,35 @@ http {
|
||||
proxy_pass http://gitea-handler;
|
||||
}
|
||||
}
|
||||
|
||||
upstream dashboard-handler {
|
||||
server dashboard:5000;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/scarif.local.crt;
|
||||
ssl_certificate_key /etc/nginx/certs/scarif.local.key;
|
||||
|
||||
gzip_types text/plain text/css application/json application/x-javascript
|
||||
text/xml application/xml application/xml+rss text/javascript;
|
||||
|
||||
server_name command.scarif.local scarif.local;
|
||||
|
||||
location / {
|
||||
proxy_pass http://dashboard-handler;
|
||||
}
|
||||
|
||||
location /unauthorized {
|
||||
return 301 https://$host/login;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
server_name _;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user