forked from uncloud/uncloud
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name {{ tpl .Values.fqdn . }};
|
|
|
|
# Use Mozilla's guidelines for SSL/TLS settings
|
|
# https://mozilla.github.io/server-side-tls/ssl-config-generator/
|
|
ssl_certificate /etc/letsencrypt/live/{{ tpl .Values.fqdn . }}/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/{{ tpl .Values.fqdn . }}/privkey.pem;
|
|
|
|
|
|
location = /robots.txt {
|
|
allow all;
|
|
log_not_found off;
|
|
access_log off;
|
|
}
|
|
error_log /dev/stdout info;
|
|
access_log /dev/stdout;
|
|
|
|
root /opt/zammad/public;
|
|
|
|
location / {
|
|
# proxy_set_header Host $http_host;
|
|
# proxy_set_header CLIENT_IP $remote_addr;
|
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
# proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
# # Change this line in an SSO setup
|
|
# proxy_set_header X-Forwarded-User "";
|
|
|
|
# proxy_read_timeout 300;
|
|
proxy_pass http://localhost:8000;
|
|
|
|
# gzip on;
|
|
# gzip_types text/plain text/xml text/css image/svg+xml application/javascript application/x-javascript application/json application/xml;
|
|
# gzip_proxied any;
|
|
}
|
|
}
|