summaryrefslogtreecommitdiff
path: root/config/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'config/nginx')
-rw-r--r--config/nginx17
1 files changed, 17 insertions, 0 deletions
diff --git a/config/nginx b/config/nginx
new file mode 100644
index 0000000..07b5ece
--- /dev/null
+++ b/config/nginx
@@ -0,0 +1,17 @@
+server {
+ root /usr/share/nginx/www;
+ index index.html index.htm;
+
+ # Make site accessible from http://localhost/
+ server_name localhost;
+
+ location / {
+ # First attempt to serve request as file, then
+ # as directory, then fall back to index.html
+ try_files $uri $uri/ /index.html;
+
+ # Optional basic auth restriction
+ # auth_basic "Restricted";
+ # auth_basic_user_file /etc/nginx/.htpasswd;
+ }
+}