Add 5e.tools mirror
This commit is contained in:
parent
21f6d3aced
commit
209de86d5f
|
@ -53,14 +53,24 @@ in
|
||||||
'';
|
'';
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations = {
|
||||||
proxyPass = "http://[::1]:${toString config.port}";
|
"/rules/" = {
|
||||||
proxyWebsockets = true;
|
root = pkgs.fetchFromGitHub {
|
||||||
extraConfig = ''
|
owner = "5etools-mirror-1";
|
||||||
proxy_set_header Host $host;
|
repo = "5etools-mirror-1.github.io";
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
sha256 = "0000000000000000000000000000000000000000000000000000";
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
};
|
||||||
'';
|
index = "index.html";
|
||||||
|
};
|
||||||
|
"/" = {
|
||||||
|
proxyPass = "http://[::1]:${toString config.port}";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue