24 lines
682 B
Plaintext
24 lines
682 B
Plaintext
|
|
server {
|
|
server_name helpdesk.wehazele.com;
|
|
listen 443 ssl;
|
|
client_max_body_size 100M;
|
|
error_page 500 501 502 503 504 /maintenance.html;
|
|
location /maintenance.html {
|
|
root /var/www/html;
|
|
}
|
|
location / {
|
|
proxy_pass http://192.168.178.21:8000;
|
|
proxy_intercept_errors on;
|
|
proxy_set_header HOST helpdesk.wehazele.com;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_connect_timeout 5;
|
|
proxy_read_timeout 240;
|
|
#root /var/www/html;
|
|
#index maintenance.html;
|
|
}
|
|
|
|
ssl_certificate /etc/letsencrypt/live/helpdesk.wehazele.com/fullchain.pem; # managed by Certbot
|
|
ssl_certificate_key /etc/letsencrypt/live/helpdesk.wehazele.com/privkey.pem; # managed by Certbot
|
|
}
|