设置静态资源过期时间为 1d
This commit is contained in:
@ -1 +0,0 @@
|
||||
user=root
|
||||
@ -1,8 +0,0 @@
|
||||
#!/bin/sh
|
||||
echo "start dnsmasq"
|
||||
service dnsmasq start
|
||||
echo ${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS}
|
||||
sed -i s/KUBERNETES_SERVICE_HOST/${KUBERNETES_SERVICE_HOST}/g /etc/nginx/conf.d/nginx.80.conf
|
||||
sed -i s/KUBERNETES_SERVICE_PORT_HTTPS/${KUBERNETES_SERVICE_PORT_HTTPS}/g /etc/nginx/conf.d/nginx.80.conf
|
||||
echo "start nginx"
|
||||
nginx -g "daemon off;"
|
||||
@ -4,6 +4,7 @@ server {
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index landing.html index.html index.htm;
|
||||
expires 1d;
|
||||
}
|
||||
|
||||
error_page 404 500 502 503 504 /404.html;
|
||||
|
||||
Reference in New Issue
Block a user