Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
thueske committed Jun 30, 2024
1 parent d3d244a commit cddb0c4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions conf/nginx/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ fastcgi_cache_key "$scheme$request_method$host$request_uri";
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;

server {
listen 80;
index index.php index.htm index.html;
listen 80;
index index.php index.htm index.html;

set $skip_cache 0;

Expand All @@ -26,16 +26,16 @@ server {
set $skip_cache 1;
}

root /var/www/html;
root /var/www/html;

error_log /var/log/nginx/error.log;
access_log off;
error_log /var/log/nginx/error.log;
access_log off;

include /etc/nginx/conf.d/7g.conf;
include /etc/nginx/conf.d/7g.conf;

location ~* ^.+\.(png|jpe?g|gif)$ {
add_header Vary Accept;
try_files $uri$webp_suffix $uri =404;
location ~* ^.+\.(png|jpe?g|gif)$ {
add_header Vary Accept;
try_files $uri$webp_suffix $uri =404;
}

location / {
Expand Down

0 comments on commit cddb0c4

Please sign in to comment.