file updated due to Terraform, purge some useles files as well

This commit is contained in:
2024-07-30 15:52:47 +01:00
parent 89c5666074
commit 225b60b1fd
21 changed files with 426 additions and 278 deletions
+35 -24
View File
@@ -1,33 +1,44 @@
############################################
# config file for onitama
############################################
upstream onitama_backend {
server onitama.onitama.svc;
#kube server
#server 192.168.88.52:30007;
#docker server
#server 192.168.88.50:6780;
server 1.1.1.1 backup;
server onitama.onitama.svc;
server 1.1.1.1 backup;
}
server {
server_name onitama.tryton.geeraert.eu www.onitama.tryton.geeraert.eu;
server_name onitama.tryton.geeraert.eu www.onitama.tryton.geeraert.eu;
location / {
# auth_request /auth;
# auth_request_set $auth_status $upstream_status;
# error_page 401 = @handle_unauthorized;
proxy_pass http://onitama_backend;
proxy_pass http://onitama_backend;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host;
}
# location /auth {
# proxy_ssl_server_name on;
# proxy_pass https://keycloak.tryton.geeraert.eu/realms/tryton/protocol/openid-connect/userinfo;
# proxy_pass_request_body off;
# proxy_set_header Content-Length "";
# proxy_set_header X-Original-URI $request_uri;
# }
location /.well-known/acme-challenge/ {
root /var/www/certbot;
root /var/www/certbot;
}
listen 80 ;
}
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/live/tryton.geeraert.eu/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/live/tryton.geeraert.eu/privkey.pem;
}
server {
if ($host = www.onitama.tryton.geeraert.eu) {
return 301 https://$host$request_uri;
}
if ($host = onitama.tryton.geeraert.eu) {
return 301 https://$host$request_uri;
}
server_name www.onitama.tryton.geeraert.eu onitama.tryton.geeraert.eu;
listen 80;
return 404;
}