fix root location
This commit is contained in:
parent
5357b7a2df
commit
7889e9e3b3
@ -75,15 +75,18 @@
|
|||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
"ataraxiadev.com" = {
|
"ataraxiadev.com" = {
|
||||||
|
locations."/" = {
|
||||||
|
root = "/srv/http/ataraxiadev.com/";
|
||||||
|
extraConfig = ''
|
||||||
|
try_files $uri $uri/ =404;
|
||||||
|
'';
|
||||||
|
};
|
||||||
locations."/.well-known/matrix" = {
|
locations."/.well-known/matrix" = {
|
||||||
proxyPass = "https://matrix.ataraxiadev.com/.well-known/matrix";
|
proxyPass = "https://matrix.ataraxiadev.com/.well-known/matrix";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
locations."/" = {
|
|
||||||
extraConfig = "try_files $uri $uri/ =404;";
|
|
||||||
};
|
|
||||||
locations."/cgi-bin/" = with config.services; {
|
locations."/cgi-bin/" = with config.services; {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
gzip off;
|
gzip off;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user