Let mastodon configure nginx, but override forceSSL
This commit is contained in:
parent
01c6703a67
commit
56f2393796
|
@ -114,6 +114,12 @@ in {
|
||||||
automaticMigrations = true;
|
automaticMigrations = true;
|
||||||
streamingProcesses = cfg.streaming-processes;
|
streamingProcesses = cfg.streaming-processes;
|
||||||
};
|
};
|
||||||
|
nginx = {
|
||||||
|
virtualHosts."${cfg.hostname}" = {
|
||||||
|
forceSSL = false;
|
||||||
|
enableACME = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -126,6 +132,8 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
virtualHosts."${cfg.hostname}" = {
|
virtualHosts."${cfg.hostname}" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:${toString cfg.port}";
|
proxyPass = "http://localhost:${toString cfg.port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
|
|
Loading…
Reference in New Issue