aboutsummaryrefslogtreecommitdiffstats
path: root/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'nginx.conf')
-rw-r--r--nginx.conf23
1 files changed, 23 insertions, 0 deletions
diff --git a/nginx.conf b/nginx.conf
new file mode 100644
index 0000000..4b8416e
--- /dev/null
+++ b/nginx.conf
@@ -0,0 +1,23 @@
+server {
+ listen 80;
+ listen [::]:80;
+ server_name _;
+
+ root /usr/share/nginx/html;
+ index index.html index.htm;
+
+ location ~* \.(?:ico|css|js|gif|jpe?g|png|woff2?|eot|ttf|svg|otf|webp)$ {
+ expires 30d;
+ access_log off;
+ add_header Cache-Control "public";
+ }
+
+ location / {
+ try_files $uri $uri/ /index.html;
+ }
+
+ error_page 404 /404.html;
+ location = /404.html {
+ internal;
+ }
+} \ No newline at end of file