summary refs log tree commit diff stats
path: root/swag/etc-config-swag
diff options
context:
space:
mode:
Diffstat (limited to 'swag/etc-config-swag')
-rw-r--r--swag/etc-config-swag/README2
-rw-r--r--swag/etc-config-swag/nginx/proxy-confs/cgit.subdomain.conf19
-rw-r--r--swag/etc-config-swag/nginx/proxy-confs/freshrss.subdomain.conf51
-rw-r--r--swag/etc-config-swag/nginx/proxy-confs/invidious.subdomain.conf19
-rw-r--r--swag/etc-config-swag/nginx/proxy-confs/nitter.subdomain.conf19
-rw-r--r--swag/etc-config-swag/nginx/proxy-confs/tnt-search.subdomain.conf19
-rw-r--r--swag/etc-config-swag/www/index.html11
7 files changed, 140 insertions, 0 deletions
diff --git a/swag/etc-config-swag/README b/swag/etc-config-swag/README
new file mode 100644
index 0000000..bd6c9be
--- /dev/null
+++ b/swag/etc-config-swag/README
@@ -0,0 +1,2 @@
+The contents of this folder should be moved here:
+/etc/config/swag/
diff --git a/swag/etc-config-swag/nginx/proxy-confs/cgit.subdomain.conf b/swag/etc-config-swag/nginx/proxy-confs/cgit.subdomain.conf
new file mode 100644
index 0000000..f9a6dc6
--- /dev/null
+++ b/swag/etc-config-swag/nginx/proxy-confs/cgit.subdomain.conf
@@ -0,0 +1,19 @@
+server {
+    listen 443 ssl http2;
+    listen [::]:443 ssl http2;
+
+    server_name git.*;
+
+    include /config/nginx/ssl.conf;
+
+    client_max_body_size 0;
+
+    location / {
+        include /config/nginx/proxy.conf;
+        include /config/nginx/resolver.conf;
+        set $upstream_app cgit;
+        set $upstream_port 80;
+        set $upstream_proto http;
+        proxy_pass $upstream_proto://$upstream_app:$upstream_port;
+    }
+}   
diff --git a/swag/etc-config-swag/nginx/proxy-confs/freshrss.subdomain.conf b/swag/etc-config-swag/nginx/proxy-confs/freshrss.subdomain.conf
new file mode 100644
index 0000000..8747718
--- /dev/null
+++ b/swag/etc-config-swag/nginx/proxy-confs/freshrss.subdomain.conf
@@ -0,0 +1,51 @@
+## Version 2023/05/31
+# make sure that your freshrss container is named freshrss
+# make sure that your dns has a cname set for freshrss
+
+server {
+    listen 443 ssl http2;
+    listen [::]:443 ssl http2;
+
+    server_name rss.*;
+
+    include /config/nginx/ssl.conf;
+
+    client_max_body_size 0;
+
+    # enable for ldap auth (requires ldap-location.conf in the location block)
+    #include /config/nginx/ldap-server.conf;
+
+    # enable for Authelia (requires authelia-location.conf in the location block)
+    #include /config/nginx/authelia-server.conf;
+
+    # enable for Authentik (requires authentik-location.conf in the location block)
+    #include /config/nginx/authentik-server.conf;
+
+    location / {
+        # enable the next two lines for http auth
+        #auth_basic "Restricted";
+        #auth_basic_user_file /config/nginx/.htpasswd;
+
+        # enable for ldap auth (requires ldap-server.conf in the server block)
+        #include /config/nginx/ldap-location.conf;
+
+        # enable for Authelia (requires authelia-server.conf in the server block)
+        #include /config/nginx/authelia-location.conf;
+
+        # enable for Authentik (requires authentik-server.conf in the server block)
+        #include /config/nginx/authentik-location.conf;
+
+        include /config/nginx/proxy.conf;
+        include /config/nginx/resolver.conf;
+        set $upstream_app freshrss;
+        set $upstream_port 80;
+        set $upstream_proto http;
+        proxy_pass $upstream_proto://$upstream_app:$upstream_port;
+
+        proxy_buffering off;
+        proxy_set_header X-Forwarded-Port $server_port;
+        proxy_cookie_path / "/; HTTPOnly; Secure";
+        proxy_set_header Authorization $http_authorization;
+        proxy_pass_header Authorization;
+    }
+}
diff --git a/swag/etc-config-swag/nginx/proxy-confs/invidious.subdomain.conf b/swag/etc-config-swag/nginx/proxy-confs/invidious.subdomain.conf
new file mode 100644
index 0000000..c48dc72
--- /dev/null
+++ b/swag/etc-config-swag/nginx/proxy-confs/invidious.subdomain.conf
@@ -0,0 +1,19 @@
+server {
+    listen 443 ssl http2;
+    listen [::]:443 ssl http2;
+
+    server_name y.*;
+
+    include /config/nginx/ssl.conf;
+
+    client_max_body_size 0;
+
+    location / {
+        include /config/nginx/proxy.conf;
+        include /config/nginx/resolver.conf;
+        set $upstream_app invidious;
+        set $upstream_port 3000;
+        set $upstream_proto http;
+        proxy_pass $upstream_proto://$upstream_app:$upstream_port;
+    }
+}   
diff --git a/swag/etc-config-swag/nginx/proxy-confs/nitter.subdomain.conf b/swag/etc-config-swag/nginx/proxy-confs/nitter.subdomain.conf
new file mode 100644
index 0000000..ab140e1
--- /dev/null
+++ b/swag/etc-config-swag/nginx/proxy-confs/nitter.subdomain.conf
@@ -0,0 +1,19 @@
+server {
+    listen 443 ssl http2;
+    listen [::]:443 ssl http2;
+
+    server_name t.*;
+
+    include /config/nginx/ssl.conf;
+
+    client_max_body_size 0;
+
+    location / {
+        include /config/nginx/proxy.conf;
+        include /config/nginx/resolver.conf;
+        set $upstream_app nitter;
+        set $upstream_port 8080;
+        set $upstream_proto http;
+        proxy_pass $upstream_proto://$upstream_app:$upstream_port;
+    }
+}   
diff --git a/swag/etc-config-swag/nginx/proxy-confs/tnt-search.subdomain.conf b/swag/etc-config-swag/nginx/proxy-confs/tnt-search.subdomain.conf
new file mode 100644
index 0000000..b7cddc7
--- /dev/null
+++ b/swag/etc-config-swag/nginx/proxy-confs/tnt-search.subdomain.conf
@@ -0,0 +1,19 @@
+server {
+    listen 443 ssl http2;
+    listen [::]:443 ssl http2;
+
+    server_name tnt.*;
+
+    include /config/nginx/ssl.conf;
+
+    client_max_body_size 0;
+
+    location / {
+        include /config/nginx/proxy.conf;
+        include /config/nginx/resolver.conf;
+        set $upstream_app tnt-search;
+        set $upstream_port 5000;
+        set $upstream_proto http;
+        proxy_pass $upstream_proto://$upstream_app:$upstream_port;
+    }
+}   
diff --git a/swag/etc-config-swag/www/index.html b/swag/etc-config-swag/www/index.html
new file mode 100644
index 0000000..d5b0b98
--- /dev/null
+++ b/swag/etc-config-swag/www/index.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>BiRabittoh</title>
+     <meta charset="UTF-8" />
+     <meta http-equiv="refresh" content="0; URL=https://birabittoh.github.io/" />
+   </head>
+   <body style="background-color: #202124; color: white;">
+     <p>If you are not redirected within 3 seconds, click <a href="https://birabittoh.github.io/">here</a>.</p>
+   </body>
+</html>