Merge pull request #70 from DarkKirb/fix-peertube

fix peertube
This commit is contained in:
Charlotte 🦝 Delenk 2022-11-27 15:26:22 +01:00 committed by GitHub
commit ee40fa8574
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 3 deletions

View file

@ -3,7 +3,8 @@
enable = true;
localDomain = "peertube.chir.rs";
listenHttp = 5370;
listenWeb = 5370;
listenWeb = 443;
enableWebHttps = true;
serviceEnvironmentFile = config.sops.secrets."services/peertube".path;
settings = {
object_storage = {

View file

@ -46,20 +46,33 @@ in {
method GET
}
@options {
method OPTIONS
}
header {
Access-Control-Allow-Origin *
Access-Control-Allow-Credentials true
Access-Control-Allow-Methods GET
Access-Control-Allow-Headers *
defer
}
reverse_proxy @getOnly {
to http://localhost:24155
header_up Host {upstream_hostport}
header_up -Authorization
header_down -Set-Cookie
header_down Access-Control-Allow-Origin '*'
header_down -Access-Control-Allow-Origin
header_down -Access-Control-Allow-Methods
header_down Access-Control-Allow-Headers
header_down -Access-Control-Allow-Headers
header_up -Set-Cookie
transport http {
versions 1.1 2 3
}
}
respond @options 204
'';
};
"cache.chir.rs" = {