mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Update wprocket-webp-express-force-https.stpl
rocket include must go bellow webp rules
This commit is contained in:
parent
59db959b9a
commit
a48621a88e
1 changed files with 4 additions and 3 deletions
|
@ -7,8 +7,6 @@ server {
|
||||||
error_log /var/log/%web_system%/domains/%domain%.error.log error;
|
error_log /var/log/%web_system%/domains/%domain%.error.log error;
|
||||||
|
|
||||||
root %sdocroot%;
|
root %sdocroot%;
|
||||||
# Rocket-Nginx configuration
|
|
||||||
include rocket-nginx/conf.d/default.conf;
|
|
||||||
|
|
||||||
# Serve WebP if browser supports it
|
# Serve WebP if browser supports it
|
||||||
location ~* ^/wp-content/.*\.(png|jpe?g)$ {
|
location ~* ^/wp-content/.*\.(png|jpe?g)$ {
|
||||||
|
@ -46,6 +44,9 @@ server {
|
||||||
proxy_pass https://%ip%:%web_ssl_port%;
|
proxy_pass https://%ip%:%web_ssl_port%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Rocket-Nginx configuration
|
||||||
|
include rocket-nginx/conf.d/default.conf;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass https://%ip%:%web_ssl_port%;
|
proxy_pass https://%ip%:%web_ssl_port%;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue