mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-25 21:52:33 -05:00
Matrix, Caddy
* Nginx to caddy (#5) Convert all nginx instances to caddy instances, setup acme as well * matrix implemented
This commit is contained in:
parent
742be942bb
commit
e0590ff20b
25 changed files with 182 additions and 484 deletions
|
|
@ -32,34 +32,15 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
virtualHosts = {
|
||||
"swgalaxyproject.com" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "swgalaxyproject.com";
|
||||
locations."/" = {
|
||||
recommendedProxySettings = true;
|
||||
extraConfig = ''
|
||||
client_max_body_size 200M;
|
||||
'';
|
||||
proxyPass = "http://localhost:8080";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
"nnsbluegrass.com" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "nnsbluegrass.com";
|
||||
locations."/" = {
|
||||
recommendedProxySettings = true;
|
||||
extraConfig = ''
|
||||
client_max_body_size 200M;
|
||||
'';
|
||||
proxyPass = "http://localhost:9821";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
"swgalaxyproject.com".extraConfig = ''
|
||||
reverse_proxy http://localhost:8080
|
||||
'';
|
||||
"nnsbluegrass.com".extraConfig = ''
|
||||
reverse_proxy http://localhost:9821
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue