diff options
| author | Max Resnick <max@ofmax.li> | 2019-12-23 07:33:04 -0800 |
|---|---|---|
| committer | Max Resnick <max@ofmax.li> | 2019-12-23 07:33:04 -0800 |
| commit | 3ec61949c43463f7771301b9c4f4265eb15a0487 (patch) | |
| tree | 5a917d75a60884d04c507d326890bf77cb70bd3c /src/static-files/conf | |
| download | grumpy-containers-3ec61949c43463f7771301b9c4f4265eb15a0487.tar.gz | |
initial commit
Diffstat (limited to 'src/static-files/conf')
| -rw-r--r-- | src/static-files/conf | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/static-files/conf b/src/static-files/conf new file mode 100644 index 0000000..7cb0807 --- /dev/null +++ b/src/static-files/conf @@ -0,0 +1,28 @@ +server {
+ listen 8080;
+ client_max_body_size 1M;
+ keepalive_timeout 15;
+ types_hash_max_size 2024;
+ root /app;
+ location = / {
+ # Instead of handling the index, just
+ # rewrite / to /index.html
+ rewrite ^ /index.html;
+ }
+ location / {
+ # Serve a .gz version if it exists
+ gzip_static on;
+ # Try to serve the clean url version first
+ try_files $uri.html $uri/index.html $uri =404;
+ }
+
+ location = /favicon.ico {
+ # This never changes, so don't let it expire
+ expires max;
+ }
+
+ location ^~ /theme {
+ # This content should very rarely, if ever, change
+ expires 1y;
+ }
+}
|