1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_playbook_servers.git synced 2024-09-14 19:53:56 +02:00
ansible_playbook_servers/templates/files/nginx/sites/files.l3d.ch_tls.conf
2022-09-07 23:27:48 +02:00

63 lines
1.5 KiB
Text

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name files.l3d.ch;
include snippets/tls_parameters_files.l3d.ch.snippet.conf;
include snippets/tls_certificate_files.l3d.ch.snippet.conf;
include snippets/logging_files.l3d.ch.snippet.conf;
root /srv/www/files.l3d.ch;
add_header Access-Control-Allow-Origin "*";
location / {
autoindex off;
add_header X-Served-By "Hello World";
try_files $uri $uri/ =404;
}
location /share/ {
add_before_body /theme/header.html;
add_after_body /theme/footer.html;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
try_files $uri $uri/ =404;
}
location /fff/ {
add_before_body /theme/header.html;
add_after_body /theme/footer.html;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
try_files $uri $uri/ =404;
}
location /hidden/ {
autoindex off;
add_header X-Served-By "I am a teapod";
try_files $uri $uri/ =418;
}
location /thw/ {
add_before_body /theme/header.html;
add_after_body /theme/footer.html;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
try_files $uri $uri/ =404;
}
location ~ /hidden/[\S+]+/ {
add_before_body /theme/header.html;
add_after_body /theme/footer.html;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
add_header X-Served-By "teapot CYBER 4.0 (with blockchain)";
try_files $uri $uri/ =418;
}
}