Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ESXi subdomain proxy config for linuxserver/letsencrypt
# make sure that your dns has a cname set for esxi
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name esxi.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
# enable for ldap auth, fill in ldap details in ldap.conf
#include /config/nginx/ldap.conf;
location / {
# enable the next two lines for http auth
auth_basic "Restricted";
auth_basic_user_file /config/nginx/.htpasswd;
# enable the next two lines for ldap auth
#auth_request /auth-0;
#error_page 401 =200 /login;
resolver 127.0.0.11 valid=30s;
set $upstream_esxi 192.168.1.20;
proxy_pass https://$upstream_esxi:443;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.