generated from avior/template-web-astro
fix: nginx config
Signed-off-by: Avior <github@avior.me>
This commit is contained in:
parent
3436392be9
commit
e6a8738815
@ -18,19 +18,19 @@ http {
|
|||||||
gzip on;
|
gzip on;
|
||||||
gzip_min_length 1000;
|
gzip_min_length 1000;
|
||||||
gzip_proxied expired no-cache no-store private auth;
|
gzip_proxied expired no-cache no-store private auth;
|
||||||
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
gzip_types text/html text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
||||||
|
|
||||||
error_page 404 /404.html;
|
error_page 404 /404.html;
|
||||||
error_page 500 502 503 504 /500.html;
|
error_page 500 502 503 504 /500.html;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri.html /$uri /index.html;
|
try_files $uri $uri.html $uri/index.html /$uri /$uri/index.html /index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Plausible script
|
# Plausible script
|
||||||
location /js/script.js {
|
location /js/script.js {
|
||||||
# Change this if you use a different variant of the script
|
# Change this if you use a different variant of the script
|
||||||
proxy_pass https://plausible.io/js/script.js;
|
proxy_pass https://plausible.io/js/script.outbound-links.js;
|
||||||
proxy_set_header Host plausible.io;
|
proxy_set_header Host plausible.io;
|
||||||
|
|
||||||
# Tiny, negligible performance improvement. Very optional.
|
# Tiny, negligible performance improvement. Very optional.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user