Fabrice Bellamy
dea94a8bc8
All checks were successful
deploy to prod / Build and deploy site (push) Successful in 49s
38 lines
804 B
Vue
38 lines
804 B
Vue
<template>
|
|
<pre>
|
|
{
|
|
services.gotosocial = {
|
|
enable = true;
|
|
setupPostgresqlDB = true;
|
|
settings = {
|
|
application-name = "My GoToSocial";
|
|
host = "gotosocial.example.com";
|
|
protocol = "https";
|
|
bind-address = "127.0.0.1";
|
|
port = 8080;
|
|
};
|
|
};
|
|
}
|
|
{
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
services.nginx = {
|
|
enable = true;
|
|
clientMaxBodySize = "40M";
|
|
virtualHosts = with config.services.gotosocial.settings; {
|
|
"${host}" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations = {
|
|
"/" = {
|
|
recommendedProxySettings = true;
|
|
proxyWebsockets = true;
|
|
proxyPass = "http://${bind-address}:${toString port}";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
</pre>
|
|
</template>
|
|
|