Merge pull request 'fix: owncast websockets, forgejo max body size in nginx' (#38) from fix-owncast into main

Reviewed-on: #38
Reviewed-by: b12f <hello@benjaminbaedorf.eu>
This commit is contained in:
teutat3s 2023-10-29 22:12:21 +00:00
commit a7b3490c15
Signed by: pub.solar gitea
GPG key ID: F0332B04B7054873
4 changed files with 12 additions and 3 deletions

View file

@ -3,7 +3,7 @@
Clone this repository: Clone this repository:
``` ```
git clone gitea@git.pub.solar:pub-solar/infra.git git clone https://git.pub.solar/pub-solar/infra-new.git
``` ```
then, install [the package manager nix](https://nixos.org/download). then, install [the package manager nix](https://nixos.org/download).

View file

@ -25,7 +25,12 @@
return 302 /user/oauth2/keycloak; return 302 /user/oauth2/keycloak;
''; '';
locations."/".proxyPass = "http://127.0.0.1:3000"; locations."/" = {
proxyPass = "http://127.0.0.1:3000";
extraConfig = ''
client_max_body_size 1G;
'';
};
}; };
services.gitea = { services.gitea = {

View file

@ -8,7 +8,10 @@
services.nginx.virtualHosts."stream.pub.solar" = { services.nginx.virtualHosts."stream.pub.solar" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/".proxyPass = "http://127.0.0.1:5000"; locations."/" = {
proxyPass = "http://127.0.0.1:5000";
proxyWebsockets = true;
};
}; };
# Owncast # Owncast

View file

@ -16,6 +16,7 @@
./apps/mailman.nix ./apps/mailman.nix
./apps/mastodon.nix ./apps/mastodon.nix
./apps/nextcloud.nix ./apps/nextcloud.nix
./apps/owncast.nix
./apps/nginx-mastodon.nix ./apps/nginx-mastodon.nix
./apps/nginx-mastodon-files.nix ./apps/nginx-mastodon-files.nix
./apps/nginx-website.nix ./apps/nginx-website.nix