Aroy-Art
f9bf65e107
Some checks failed
Publish Docker rootless image / Push Docker image to Docker Hub (push) Has been cancelled
Publish Docker image / Push Docker image to Docker Hub (push) Has been cancelled
30 lines
547 B
Text
30 lines
547 B
Text
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
|
|
root /opt/www/;
|
|
index index.html index.htm;
|
|
|
|
location /files/ {
|
|
alias /opt/www/files/;
|
|
index ___i; # we really need no index here, just listing files
|
|
|
|
autoindex on;
|
|
autoindex_format json;
|
|
disable_symlinks off;
|
|
}
|
|
|
|
location = /favicon.ico {
|
|
alias /opt/www/file-browser/favicon.png;
|
|
}
|
|
|
|
location / {
|
|
root /opt/www/file-browser/;
|
|
}
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /usr/share/nginx/html;
|
|
}
|
|
|
|
}
|