Zakladni nastrel sitemapy

This commit is contained in:
Michal Kváček
2024-02-21 06:31:32 +01:00
parent 1a5c8f09bf
commit cda07239ef
3 changed files with 212 additions and 3 deletions
+9 -3
View File
@@ -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;
}
}
}