phase in role elementweb
This commit is contained in:
parent
c1ddbfb71c
commit
91421c02e5
4 changed files with 32 additions and 0 deletions
32
ansible/roles/elementweb/templates/nginx/elementweb.conf
Normal file
32
ansible/roles/elementweb/templates/nginx/elementweb.conf
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
server {
|
||||
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
ssl_certificate /ssl/chain.crt;
|
||||
ssl_certificate_key /ssl/certificate.keyplain;
|
||||
|
||||
access_log /var/log/nginx/element/access-{{ inventory_hostname }}.log main;
|
||||
access_log /var/log/nginx/access-{{ inventory_hostname }}.log main;
|
||||
error_log /var/log/nginx/element/error-{{ inventory_hostname }}.log notice;
|
||||
error_log /var/log/nginx/error-{{ inventory_hostname }}.log notice;
|
||||
|
||||
error_page 403 404 /403_404.html;
|
||||
location = /403_404.html {
|
||||
default_type application/json;
|
||||
return 200 'You are not authorized to access this page.';
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header Host $http_host;
|
||||
|
||||
proxy_connect_timeout 600s;
|
||||
proxy_send_timeout 600s;
|
||||
proxy_read_timeout 600s;
|
||||
send_timeout 600s;
|
||||
|
||||
proxy_pass http://elementweb;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue