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