summaryrefslogtreecommitdiff
path: root/hosts/cirrus/nextcloud-proxy.nix
diff options
context:
space:
mode:
authorGrigory Shipunov2025-01-02 15:35:05 +0000
committerGrigory Shipunov2025-01-02 15:35:05 +0000
commitc1e09364bb412f1e09d1a680e5200d375a61694f (patch)
treea2f5cbc73043afb46a7d1d23864299b82e32449a /hosts/cirrus/nextcloud-proxy.nix
parentcd63ec45b8776bebc4014efb9990b364e0afb443 (diff)
remove obsolete infra
Diffstat (limited to 'hosts/cirrus/nextcloud-proxy.nix')
-rw-r--r--hosts/cirrus/nextcloud-proxy.nix64
1 files changed, 0 insertions, 64 deletions
diff --git a/hosts/cirrus/nextcloud-proxy.nix b/hosts/cirrus/nextcloud-proxy.nix
deleted file mode 100644
index 3b5166a..0000000
--- a/hosts/cirrus/nextcloud-proxy.nix
+++ /dev/null
@@ -1,64 +0,0 @@
-{ config, pkgs, ... }: {
- security.acme = {
- defaults.email = "acme@oxapentane.com";
- acceptTerms = true;
- };
-
- networking.firewall.allowedTCPPorts = [ 80 443 ];
-
- services.nginx = {
- enable = true;
- recommendedProxySettings = true;
- recommendedGzipSettings = true;
- recommendedTlsSettings = true;
- recommendedOptimisation = true;
-
- sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
- };
-
- services.nginx.virtualHosts = {
- "nc.oxapentane.com" = {
- enableACME = true;
- forceSSL = true;
- extraConfig = ''
- client_max_body_size 512M;
- '';
- locations = {
- "/" = {
- proxyPass = "http://10.34.45.100:8080";
- };
- "/well-known/carddav" = {
- return = "301 $scheme://$host/remote.php/dav";
- };
- "/well-known/caldav" = {
- return = "301 $scheme://$host/remote.php/dav";
- };
- };
- };
-
- "music.oxapentane.com" = {
- enableACME = true;
- forceSSL = true;
- extraConfig = ''
- client_max_body_size 32M;
- '';
- locations = {
- "/" = {
- proxyPass = "http://10.34.45.101:4533";
- };
- };
- };
- "news.oxapentane.com" = {
- enableACME = true;
- forceSSL = true;
- extraConfig = ''
- client_max_body_size 32M;
- '';
- locations = {
- "/" = {
- proxyPass = "http://10.34.45.102:8080";
- };
- };
- };
- };
-}