mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-04-16 18:51:01 +00:00
Merge 3a31ef4a176394e6509f56ac23d22f1fe7f49802 into 7470514e7b0cdfb3dfbed1be2777b07bd6ae333e
This commit is contained in:
commit
3d2de809f9
14
nginx.tmpl
14
nginx.tmpl
@ -103,6 +103,16 @@ map $scheme $proxy_x_forwarded_ssl {
|
||||
https on;
|
||||
}
|
||||
|
||||
# Expires map
|
||||
map $sent_http_content_type $expires {
|
||||
default off;
|
||||
~application/ 30d;
|
||||
~text/ 30d;
|
||||
~audio/ 365d;
|
||||
~video/ 365d;
|
||||
~image/ 365d;
|
||||
}
|
||||
|
||||
gzip_types text/plain text/css application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
||||
|
||||
log_format vhost '$host $remote_addr - $remote_user [$time_local] '
|
||||
@ -275,6 +285,8 @@ server {
|
||||
{{ end }}
|
||||
{{ $access_log }}
|
||||
|
||||
expires $expires;
|
||||
|
||||
{{ if eq $network_tag "internal" }}
|
||||
# Only allow traffic from internal clients
|
||||
include /etc/nginx/network_internal.conf;
|
||||
@ -351,6 +363,8 @@ server {
|
||||
{{ end }}
|
||||
{{ $access_log }}
|
||||
|
||||
expires $expires;
|
||||
|
||||
{{ if eq $network_tag "internal" }}
|
||||
# Only allow traffic from internal clients
|
||||
include /etc/nginx/network_internal.conf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user