From dda295e22960f8fc2559d39d0c0c60a6668ddeb9 Mon Sep 17 00:00:00 2001 From: driz <40674481+drizuid@users.noreply.github.com> Date: Thu, 5 Mar 2020 21:01:54 -0500 Subject: [PATCH] Create netboot.subdomain.conf.sample --- netboot.subdomain.conf.sample | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 netboot.subdomain.conf.sample diff --git a/netboot.subdomain.conf.sample b/netboot.subdomain.conf.sample new file mode 100644 index 0000000..bcc5a2d --- /dev/null +++ b/netboot.subdomain.conf.sample @@ -0,0 +1,33 @@ +# make sure that your dns has a cname set for netboot + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name netboot.*; + + 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; + #error_page 401 =200 /login; + + include /config/nginx/proxy.conf; + resolver 127.0.0.11 valid=30s; + set $upstream_app netboot; + set $upstream_port 3000; + set $upstream_proto http; + set $upstream_netboot netboot; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + } +}