Files
rust-discovery/deploy/server-bootstrap-ingress.conf
T

65 lines
2.7 KiB
Plaintext

worker_processes 1;
pid /run/rmm-install-ingress/nginx.pid;
error_log stderr warn;
events { worker_connections 128; }
http {
access_log off;
client_body_temp_path /run/rmm-install-ingress/client;
proxy_temp_path /run/rmm-install-ingress/proxy;
fastcgi_temp_path /run/rmm-install-ingress/fastcgi;
uwsgi_temp_path /run/rmm-install-ingress/uwsgi;
scgi_temp_path /run/rmm-install-ingress/scgi;
client_max_body_size 256m;
limit_req_zone $binary_remote_addr zone=public_login:1m rate=6r/m;
server_tokens off;
keepalive_timeout 10;
server {
listen 0.0.0.0:8443 ssl;
listen [::]:8443 ssl;
server_name discovery.ease-technologies.de;
if ($host != discovery.ease-technologies.de) { return 421; }
ssl_protocols TLSv1.2 TLSv1.3;
ssl_certificate /run/credentials/rmm-install-ingress.service/chain.pem;
ssl_certificate_key /run/credentials/rmm-install-ingress.service/key.pem;
proxy_ssl_trusted_certificate /run/credentials/rmm-install-ingress.service/gateway-ca.pem;
proxy_ssl_name discovery.ease-technologies.de;
proxy_ssl_server_name on;
proxy_ssl_verify on;
proxy_buffering off;
proxy_pass_request_body off;
proxy_pass_request_headers off;
proxy_set_header Host discovery.ease-technologies.de;
proxy_set_header Content-Length "";
proxy_set_header Authorization $http_authorization;
location ~ "^/(install/(linux\.sh|windows\.ps1)|agent/v1/bootstrap/(current|updater|releases/[0-9a-f-]{36}/artifacts/[0-9a-f-]{36}))$" {
limit_except GET { deny all; }
proxy_pass https://127.0.0.1:18444$uri$is_args$args;
}
location = /auth/dev/login { return 404; }
location ~ ^/auth/oidc/ { return 404; }
location = /auth/local/login {
limit_req zone=public_login burst=6 nodelay;
limit_req_status 429;
client_max_body_size 4k;
proxy_pass_request_body on;
proxy_pass_request_headers on;
proxy_set_header Host $http_host;
proxy_ssl_trusted_certificate /run/credentials/rmm-install-ingress.service/api-ca.pem;
proxy_ssl_name localhost;
proxy_pass https://127.0.0.1:18445;
}
location / {
proxy_pass_request_body on;
proxy_pass_request_headers on;
proxy_set_header Host $http_host;
proxy_set_header Connection "";
proxy_ssl_trusted_certificate /run/credentials/rmm-install-ingress.service/api-ca.pem;
proxy_ssl_name localhost;
proxy_read_timeout 300s;
proxy_pass https://127.0.0.1:18445;
}
}
}