Let mastodon configure nginx, but override forceSSL

This commit is contained in:
niten 2024-01-17 15:41:34 -08:00
parent 01c6703a67
commit 56f2393796
1 changed files with 8 additions and 0 deletions

View File

@ -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;