connect to mastodon via http i don’t care anymore
This commit is contained in:
parent
c42defd47b
commit
08c7bc67bf
2 changed files with 7 additions and 5 deletions
|
@ -50,6 +50,8 @@ in
|
||||||
let mastodon = {
|
let mastodon = {
|
||||||
root = "${config.services.mastodon.package}/public/";
|
root = "${config.services.mastodon.package}/public/";
|
||||||
locations."/system/".alias = "/var/lib/mastodon/public-system/";
|
locations."/system/".alias = "/var/lib/mastodon/public-system/";
|
||||||
|
forceSSL = false;
|
||||||
|
enableSSL = true;
|
||||||
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
tryFiles = "$uri @proxy";
|
tryFiles = "$uri @proxy";
|
||||||
|
|
|
@ -12,15 +12,15 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.nginx.virtualHosts."mastodon.chir.rs" = {
|
services.nginx.virtualHosts."mastodon.chir.rs" = {
|
||||||
|
root = "${config.services.mastodon.package}/public/";
|
||||||
sslCertificate = "/var/lib/acme/chir.rs/cert.pem";
|
sslCertificate = "/var/lib/acme/chir.rs/cert.pem";
|
||||||
sslCertificateKey = "/var/lib/acme/chir.rs/key.pem";
|
sslCertificateKey = "/var/lib/acme/chir.rs/key.pem";
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "https://mastodon.int.chir.rs";
|
tryFiles = "$uri @proxy";
|
||||||
|
};
|
||||||
|
locations."@proxy" = {
|
||||||
|
proxyPass = "http://mastodon.int.chir.rs";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
extraConfig = ''
|
|
||||||
proxy_ssl_server_name on;
|
|
||||||
proxy_ssl_name $host;
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue