connect to mastodon via http i don’t care anymore

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-26 08:06:57 +01:00
parent c42defd47b
commit 08c7bc67bf
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 7 additions and 5 deletions

View file

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

View file

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