Update navigation loading and NGINX try_file

This commit is contained in:
thiloho
2024-09-15 17:54:54 +02:00
parent aecbd64893
commit e506764bbd
3 changed files with 8 additions and 19 deletions

View File

@@ -68,9 +68,9 @@
];
locations = {
"/" = {
root = "/var/www/archtika-websites/";
root = "/var/www/archtika-websites";
index = "index.html";
tryFiles = "$uri $uri/ $uri.html $uri/index.html index.html =404";
tryFiles = "$uri $uri/ $uri.html =404";
extraConfig = ''
autoindex on;
'';

View File

@@ -158,16 +158,14 @@ in
proxyPass = "http://localhost:${toString cfg.webAppPort}";
};
"/previews/" = {
alias = "/var/www/archtika-websites/previews/";
root = "/var/www/archtika-websites/previews";
index = "index.html";
tryFiles = "$uri $uri/ $uri.html $uri/index.html index.html =404";
tryFiles = "$uri $uri/ $uri.html =404"
};
"/api/" = {
proxyPass = "http://localhost:${toString cfg.apiPort}/";
extraConfig = ''
default_type application/json;
proxy_hide_header Content-Location;
add_header Content-Location /api/$upstream_http_content_location;
proxy_set_header Connection "";
proxy_http_version 1.1;
'';
@@ -179,9 +177,9 @@ in
forceSSL = true;
locations = {
"/" = {
alias = "/var/www/archtika-websites/$subdomain/";
root = "/var/www/archtika-websites/$subdomain";
index = "index.html";
tryFiles = "$uri $uri/ $uri.html $uri/index.html index.html =404";
tryFiles = "$uri $uri/ $uri.html =404";
};
};
};