Skip to content

Commit

Permalink
fix(web): fix nginx conf (labring#1908)
Browse files Browse the repository at this point in the history
  • Loading branch information
0fatal authored Mar 14, 2024
1 parent b37508a commit 9ec2a97
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions web/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ server {
application/manifest+json webmanifest;
}

root /usr/share/nginx/html;

#access_log /var/log/nginx/host.access.log main;

# all assets contain hash in filename, cache forever
Expand All @@ -29,7 +31,6 @@ server {
expires off;
add_header Cache-Control "public, max-age=0, s-maxage=0, must-revalidate" always;

root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
Expand All @@ -39,9 +40,6 @@ server {
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
Expand Down

0 comments on commit 9ec2a97

Please sign in to comment.