mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
Point rubenhensen.nl to mailserver for reverse proxy
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# Catch-all for any domain not handled by mail.conf
|
||||
# Proxies ACME challenges to K8s for cert-manager, redirects rest to HTTPS
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
server_name _;
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
include /etc/nginx/k8s-backend-ip.conf;
|
||||
proxy_pass http://$k8s_ip:80;
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user