Browse Source

Add nginx config

Mr. CaT 1 year ago
parent
commit
d2b2f58067
1 changed files with 15 additions and 0 deletions
  1. 15 0
      default.conf

+ 15 - 0
default.conf

@@ -0,0 +1,15 @@
+server {
+    listen 80;
+    server_name localhost;
+    root /usr/share/nginx/html;
+    auth_basic off;
+
+    location / {
+        try_files $uri $uri/ /index.html;
+    }
+
+    # 404 if a file is requested (so the main app isn't served)
+    location ~ ^.+\..+$ {
+        try_files $uri =404;
+    }
+}