2021-07-28 18:28:22 +02:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name {{ zammad_domain }};
|
|
|
|
include snippets/letsencrypt.conf;
|
|
|
|
location / { return 301 https://$http_host$request_uri; }
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443 ssl http2;
|
|
|
|
server_name {{ zammad_domain }};
|
|
|
|
ssl_certificate /var/lib/dehydrated/certs/{{ zammad_domain }}/fullchain.pem;
|
|
|
|
ssl_certificate_key /var/lib/dehydrated/certs/{{ zammad_domain }}/privkey.pem;
|
|
|
|
include /etc/nginx/snippets/add_headers.conf;
|
2023-06-07 23:17:12 +02:00
|
|
|
location /cable {
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
|
proxy_pass http://{{ inventory_hostname }}:80;
|
|
|
|
}
|
2021-07-28 18:28:22 +02:00
|
|
|
location /ws {
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
2022-06-26 23:05:36 +02:00
|
|
|
proxy_pass http://{{ inventory_hostname }}:80;
|
2021-07-28 18:28:22 +02:00
|
|
|
}
|
2021-07-29 20:26:37 +02:00
|
|
|
location / {
|
2022-06-26 23:05:36 +02:00
|
|
|
proxy_pass http://{{ inventory_hostname }}:80;
|
2021-07-29 20:26:37 +02:00
|
|
|
}
|
2021-07-28 18:28:22 +02:00
|
|
|
}
|