34 lines
907 B
Plaintext
34 lines
907 B
Plaintext
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 {
|
|
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;
|
|
}
|
|
# 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;
|
|
}
|
|
|
|
listen 80 ;
|
|
}
|
|
|