2016-02-11 22:17:49 +01:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name localhost;
|
|
|
|
|
|
|
|
root /opt/www/;
|
|
|
|
index index.html index.htm;
|
|
|
|
|
|
|
|
location /files/ {
|
2016-02-15 11:32:31 +01:00
|
|
|
alias /opt/www/files/;
|
2016-02-12 16:10:23 +01:00
|
|
|
index ___i; # we really need no index here, just listing files
|
|
|
|
|
2016-02-11 22:17:49 +01:00
|
|
|
autoindex on;
|
|
|
|
autoindex_format json;
|
|
|
|
disable_symlinks off;
|
|
|
|
}
|
|
|
|
|
2024-05-28 22:56:28 +02:00
|
|
|
location = /favicon.ico {
|
|
|
|
alias /opt/www/file-browser/favicon.png;
|
|
|
|
}
|
|
|
|
|
2016-02-11 22:17:49 +01:00
|
|
|
location / {
|
|
|
|
root /opt/www/file-browser/;
|
|
|
|
}
|
|
|
|
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
location = /50x.html {
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
}
|
|
|
|
|
2024-05-28 22:56:28 +02:00
|
|
|
}
|