Zakladni nastrel sitemapy
This commit is contained in:
+9
-3
@@ -24,9 +24,7 @@ http {
|
||||
#tcp_nopush on;
|
||||
|
||||
keepalive_timeout 65;
|
||||
|
||||
#gzip on;
|
||||
|
||||
gzip on;
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
|
||||
map $sent_http_content_type $expires {
|
||||
@@ -34,6 +32,10 @@ http {
|
||||
text/html 0;
|
||||
}
|
||||
|
||||
map $host $api_url {
|
||||
default "$API_URL";
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80 default;
|
||||
server_name poletani.cz;
|
||||
@@ -46,5 +48,9 @@ http {
|
||||
expires $expires;
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
|
||||
location /sitemap.xml {
|
||||
try_files $uri $api_url;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user