Skip to content

Commit 0bca706

Browse files
chore: fix deploy
1 parent e6564e9 commit 0bca706

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

nginx/alpinejs.conf

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
server {
2+
listen 8080;
3+
server_name 0.0.0.0;
4+
error_page 500 502 503 504 /50x.html;
5+
charset utf-8;
6+
proxy_hide_header X-Frame-Options;
7+
add_header X-Frame-Options "";
8+
9+
# Media: images, icons, video, audio, HTC
10+
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc|woff2)$ {
11+
expires 1y;
12+
access_log off;
13+
add_header Cache-Control "public";
14+
}
15+
16+
# CSS and Javascript
17+
location ~* \.(?:css|js)$ {
18+
expires 1y;
19+
access_log off;
20+
add_header Cache-Control "public";
21+
}
22+
23+
# Allow performing POST requests on static JSON files
24+
location ~* \.(?:json)$ {
25+
error_page 405 =200 $uri;
26+
}
27+
28+
location / {
29+
root /app;
30+
index index.html;
31+
try_files $uri $uri/ /index.html;
32+
}
33+
34+
location = /50x.html {
35+
root /usr/share/nginx/html;
36+
}
37+
}

0 commit comments

Comments
 (0)