This commit is contained in:
14
deploy/nginx.conf
Normal file
14
deploy/nginx.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# Static assets
|
||||
location / {
|
||||
# Serve directory index pages without requiring a trailing slash.
|
||||
# This fixes /videos (and similar) resolving to /videos/index.html.
|
||||
try_files $uri $uri/index.html $uri/ =404;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user