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 = {
|
||||
root = "${config.services.mastodon.package}/public/";
|
||||
locations."/system/".alias = "/var/lib/mastodon/public-system/";
|
||||
forceSSL = false;
|
||||
enableSSL = true;
|
||||
|
||||
locations."/" = {
|
||||
tryFiles = "$uri @proxy";
|
||||
|
|
|
@ -12,15 +12,15 @@
|
|||
};
|
||||
};
|
||||
services.nginx.virtualHosts."mastodon.chir.rs" = {
|
||||
root = "${config.services.mastodon.package}/public/";
|
||||
sslCertificate = "/var/lib/acme/chir.rs/cert.pem";
|
||||
sslCertificateKey = "/var/lib/acme/chir.rs/key.pem";
|
||||
locations."/" = {
|
||||
proxyPass = "https://mastodon.int.chir.rs";
|
||||
tryFiles = "$uri @proxy";
|
||||
};
|
||||
locations."@proxy" = {
|
||||
proxyPass = "http://mastodon.int.chir.rs";
|
||||
proxyWebsockets = true;
|
||||
extraConfig = ''
|
||||
proxy_ssl_server_name on;
|
||||
proxy_ssl_name $host;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue