summaryrefslogtreecommitdiff
path: root/images/router/nginx/http
diff options
context:
space:
mode:
authorSystem administrator2017-05-29 13:26:10 +0200
committerSystem administrator2017-05-29 13:26:10 +0200
commitbc5c44dd049bad3b007be48b3f8d90886d63c105 (patch)
treea381d989db2295f228f9bc95a774f0cc9aef4c40 /images/router/nginx/http
downloadserver-bc5c44dd049bad3b007be48b3f8d90886d63c105.tar.gz
server-bc5c44dd049bad3b007be48b3f8d90886d63c105.tar.xz
server-bc5c44dd049bad3b007be48b3f8d90886d63c105.zip
Initial commit
Diffstat (limited to 'images/router/nginx/http')
-rw-r--r--images/router/nginx/http/git13
-rw-r--r--images/router/nginx/http/paste26
-rw-r--r--images/router/nginx/http/znc13
3 files changed, 52 insertions, 0 deletions
diff --git a/images/router/nginx/http/git b/images/router/nginx/http/git
new file mode 100644
index 0000000..0b14c54
--- /dev/null
+++ b/images/router/nginx/http/git
@@ -0,0 +1,13 @@
+server {
+ listen 443 ssl http2;
+ listen [::]:443 ssl http2;
+
+ server_name g.tx0.co git.tx0.co;
+
+ include snippets/ssl_http;
+ include snippets/wellknown;
+
+ location / {
+ proxy_pass http://git;
+ }
+}
diff --git a/images/router/nginx/http/paste b/images/router/nginx/http/paste
new file mode 100644
index 0000000..4e0c75b
--- /dev/null
+++ b/images/router/nginx/http/paste
@@ -0,0 +1,26 @@
+server {
+ listen 443 ssl http2;
+ listen [::]:443 ssl http2;
+
+ server_name tx0.co p.tx0.co paste.tx0.co;
+
+ include snippets/ssl_http;
+ include snippets/wellknown;
+
+ location / {
+ limit_except GET HEAD {
+ auth_basic 'Restricted';
+ auth_basic_user_file /app/auth/paste;
+ }
+
+ include snippets/uwsgi_params;
+
+ uwsgi_pass paste:10002;
+
+ proxy_redirect off;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Fowarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Host $server_name;
+ }
+}
diff --git a/images/router/nginx/http/znc b/images/router/nginx/http/znc
new file mode 100644
index 0000000..6028ca9
--- /dev/null
+++ b/images/router/nginx/http/znc
@@ -0,0 +1,13 @@
+server {
+ listen 443 ssl http2;
+ listen [::]:443 ssl http2;
+
+ server_name z.tx0.co znc.tx0.co;
+
+ include snippets/ssl_http;
+ include snippets/wellknown;
+
+ location / {
+ proxy_pass http://znc;
+ }
+}