From 08dcd45e7898da6a2bb53ade6b2ee89b1adf9a15 Mon Sep 17 00:00:00 2001 From: zellkou Date: Sun, 16 Feb 2020 02:07:20 -0500 Subject: [PATCH 1/3] added osticket.subdomain.conf --- osticket.subdomain.conf.sample | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 osticket.subdomain.conf.sample diff --git a/osticket.subdomain.conf.sample b/osticket.subdomain.conf.sample new file mode 100644 index 000000000..9c4a58011 --- /dev/null +++ b/osticket.subdomain.conf.sample @@ -0,0 +1,32 @@ +# make sure that your dns has a cname set for osticket and that your osticket container is named osticket. +# change the port number here to match the port you have the container on and you have set the "Helpdesk URL" +# to help.youdomain.com:$port in Admin panel > Settings > System > Helpdesk URL + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name help.*; + + 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_osticket osticket; + proxy_pass http://$upstream_osticket:80; + } +} From 88133f06133e5379a29bee6195ebf868fef94b37 Mon Sep 17 00:00:00 2001 From: zellkou Date: Sun, 16 Feb 2020 12:34:58 -0500 Subject: [PATCH 2/3] removed confusing comment --- osticket.subdomain.conf.sample | 2 -- 1 file changed, 2 deletions(-) diff --git a/osticket.subdomain.conf.sample b/osticket.subdomain.conf.sample index 9c4a58011..ea3c16faa 100644 --- a/osticket.subdomain.conf.sample +++ b/osticket.subdomain.conf.sample @@ -1,6 +1,4 @@ # make sure that your dns has a cname set for osticket and that your osticket container is named osticket. -# change the port number here to match the port you have the container on and you have set the "Helpdesk URL" -# to help.youdomain.com:$port in Admin panel > Settings > System > Helpdesk URL server { listen 443 ssl; From 9790176195d6ae39b59cc2d3c00ab99e803790f6 Mon Sep 17 00:00:00 2001 From: zellkou Date: Sun, 16 Feb 2020 13:00:58 -0500 Subject: [PATCH 3/3] changed subdomain name --- osticket.subdomain.conf.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osticket.subdomain.conf.sample b/osticket.subdomain.conf.sample index ea3c16faa..a74de4098 100644 --- a/osticket.subdomain.conf.sample +++ b/osticket.subdomain.conf.sample @@ -4,7 +4,7 @@ server { listen 443 ssl; listen [::]:443 ssl; - server_name help.*; + server_name osticket.*; include /config/nginx/ssl.conf;