feat(repo): Initial commit
This commit is contained in:
31
templates/etc/nginx/sites-available/proxmox.conf.j2
Normal file
31
templates/etc/nginx/sites-available/proxmox.conf.j2
Normal file
@@ -0,0 +1,31 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
upstream proxmox {
|
||||
server "{{ ansible_facts['fqdn'] }}";
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
rewrite ^(.*) https://$host$1 permanent;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
server_name _;
|
||||
ssl_certificate /etc/ssl/private/{{ ansible_facts['fqdn'] }}_fullchain.cer;
|
||||
ssl_certificate_key /etc/ssl/private/{{ ansible_facts['fqdn'] }}.key;
|
||||
proxy_redirect off;
|
||||
location / {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass https://localhost:8006;
|
||||
proxy_buffering off;
|
||||
client_max_body_size 0;
|
||||
proxy_connect_timeout 3600s;
|
||||
proxy_read_timeout 3600s;
|
||||
proxy_send_timeout 3600s;
|
||||
send_timeout 3600s;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user