summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
Diffstat (limited to 'files')
-rw-r--r--files/nginx_conf.j26
-rw-r--r--files/virtual_host.cfg.lua.j28
2 files changed, 5 insertions, 9 deletions
diff --git a/files/nginx_conf.j2 b/files/nginx_conf.j2
index ccdc630..3630f78 100644
--- a/files/nginx_conf.j2
+++ b/files/nginx_conf.j2
@@ -9,11 +9,11 @@ server {
ssl_certificate /etc/prosody/certs/{{ virtual_host }}.crt;
ssl_certificate_key /etc/prosody/certs/{{ virtual_host }}.key;
- server_name {{ delegate_host }};
+ server_name chat.{{ virtual_host }};
location / {
proxy_pass https://localhost:5281;
- proxy_set_header Host "{{ delegate_host }}";
+ proxy_set_header Host "chat.{{ virtual_host }}";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
@@ -25,7 +25,7 @@ server {
listen 80;
listen [::]:80;
- server_name {{ delegate_host }};
+ server_name chat.{{ virtual_host }};
return 301 https://$host$request_uri;
}
diff --git a/files/virtual_host.cfg.lua.j2 b/files/virtual_host.cfg.lua.j2
index 470281c..c5700c2 100644
--- a/files/virtual_host.cfg.lua.j2
+++ b/files/virtual_host.cfg.lua.j2
@@ -40,7 +40,7 @@ site_apps_show = {
{% if not is_transport_server %}
allow_user_invites = true
-http_external_url = "https://{{ virtual_host }}/"
+http_external_url = "https://chat.{{ virtual_host }}/"
site_name = "{{ virtual_host }}"
{% endif %}
@@ -71,11 +71,7 @@ http_file_share_access = {
Component "proxy.{{ virtual_host }}" "proxy65"
-{% if delegate_prefix == "" %}
-proxy65_address = "{{ virtual_host }}"
-{% else %}
-proxy65_address = "{{ delegate_prefix }}.{{ virtual_host }}"
-{% endif %}
+proxy65_address = "chat.{{ virtual_host }}"
modules_disabled = {
"s2s";