BaGet works with A Record messa017.infineon.com proxy_set_header X-Forwarded-Proto https; ssl
29 lines
1.3 KiB
Plaintext
29 lines
1.3 KiB
Plaintext
location ~* .(3gp|apng|avi|avif|bmp|css|cur|flv|gif|htm|html|ico|jfif|jpeg|jpg|js|mid|mov|mp3|mp4|mpeg|mpg|ogg|pdf|php|pjp|pjpeg|png|svg|tif|tiff|txt|wav|webp|wmf|wml|wmv|xml|xml)$ {
|
|
expires 1d;
|
|
index index.html index.htm;
|
|
# ln -s /etc/nginx/sites-available/json /etc/nginx/sites-enabled/
|
|
# ln -s /srv/samba/share/637998119172547651 /var/www/html/637998119172547651
|
|
# ln -s /var/www/html/NGINdeX.io /var/www/html/637998119172547651/NGINdeX.io
|
|
# ln -s /srv/git /var/www/html/637998119172547651/git
|
|
# root /var/www/html/637998119172547651;
|
|
# mklink /J "D:\Tmp\Phares\www\pictures" "D:\Documents\Pictures"
|
|
# mklink /J "D:\Tmp\Phares\www\NGINdeX.io" "L:\GitHub\NGINdeX.io"
|
|
root "D://Tmp//phares//www";
|
|
}
|
|
location / {
|
|
index index.html index.htm;
|
|
# root /var/www/html/637998119172547651;
|
|
# mklink /J "D:\Tmp\Phares\www\pictures" "D:\Documents\Pictures"
|
|
# mklink /J "D:\Tmp\Phares\www\NGINdeX.io" "L:\GitHub\NGINdeX.io"
|
|
root "D://Tmp//phares//www";
|
|
# First attempt to serve request as file, then
|
|
autoindex on;
|
|
# Send the data in JSON
|
|
autoindex_format json;
|
|
addition_types application/json;
|
|
# Calling from SERVERNAME/autoindex/*
|
|
add_before_body /NGINdeX.io/header.html;
|
|
add_after_body /NGINdeX.io/footer.html;
|
|
# Need to tell that we are sending HTML
|
|
add_header Content-Type text/html;
|
|
} |