diff --git a/madone/docker/nginx/README.md b/madone/docker/nginx/README.md deleted file mode 100644 index 1a08bd2..0000000 --- a/madone/docker/nginx/README.md +++ /dev/null @@ -1 +0,0 @@ -Mostly stolen from https://github.com/vtluug/docker-manifests/tree/master/sczi/nginx diff --git a/madone/docker/nginx/launch.sh b/madone/docker/nginx/launch.sh deleted file mode 100755 index 7a6bc94..0000000 --- a/madone/docker/nginx/launch.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -docker run \ - --name nginx \ - --detach \ - --restart unless-stopped \ - --env PUID=1000 \ - --env PGID=1000 \ - --env EMAIL=sysadmin@seaturtle.pw \ - --env URL=seaturtle.pw \ - --env ONLY_SUBDOMAINS=true \ - --env SUBDOMAINS=madone \ - --env EXTRA_DOMAINS=paul.walko.org,paul.walko.org,walko.org,www.walko.org \ - --env VALIDATION=html \ - --env TZ=US/Eastern \ - --volume $PWD/nginx-config:/config:rw \ - --volume $PWD/nginx.conf:/config/nginx/nginx.conf:ro \ - --volume $PWD/site-confs:/config/nginx/site-confs:ro \ - --volume $HOME/files:/files-docker:ro \ - --publish 51.159.29.122:80:80 \ - --publish 51.159.29.122:443:443 \ - --publish [2001:bc8:6005:19:208:a2ff:fe0c:917c]:80:80 \ - --publish [2001:bc8:6005:19:208:a2ff:fe0c:917c]:443:443 \ - linuxserver/letsencrypt:1.3.0-ls110 diff --git a/madone/docker/nginx/nginx.conf b/madone/docker/nginx/nginx.conf deleted file mode 100644 index 4c3f0ca..0000000 --- a/madone/docker/nginx/nginx.conf +++ /dev/null @@ -1,63 +0,0 @@ -## Version 2018/04/07 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/nginx.conf - -user abc; -worker_processes 4; -pid /run/nginx.pid; -include /etc/nginx/modules/*.conf; - -events { - worker_connections 768; - # multi_accept on; -} - -http { - - ## - # Basic Settings - ## - - sendfile on; - tcp_nopush on; - tcp_nodelay on; - keepalive_timeout 65; - types_hash_max_size 2048; - # server_tokens off; - - # server_names_hash_bucket_size 64; - # server_name_in_redirect off; - - client_max_body_size 0; - - include /etc/nginx/mime.types; - default_type application/octet-stream; - - ## - # Logging Settings - ## - - access_log /config/log/nginx/access.log; - error_log /config/log/nginx/error.log; - - ## - # Gzip Settings - ## - - gzip on; - gzip_disable "msie6"; - - # gzip_vary on; - # gzip_proxied any; - # gzip_comp_level 6; - # gzip_buffers 16 8k; - # gzip_http_version 1.1; - # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; - - ## - # Virtual Host Configs - ## - include /etc/nginx/conf.d/*.conf; - include /config/nginx/site-confs/default; - include /config/nginx/site-confs/*.enabled; -} - -daemon off; diff --git a/madone/docker/nginx/site-confs/default b/madone/docker/nginx/site-confs/default deleted file mode 100644 index f63f895..0000000 --- a/madone/docker/nginx/site-confs/default +++ /dev/null @@ -1,29 +0,0 @@ -## Based on version below; but heavily modified for LUUG -## Version 2018/09/12 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/default - -# This is the main file that will be pe present no matter what -# Individual sites are specified in /config/nginx/sites/*.enabled - -# Redirect unknown HTTP traffic to https://seaturtle.pw -server { - listen 80 default_server; - listen [::]:80 default_server; - server_name _; - - return 301 https://seaturtle.pw; -} - -# Redirect unknown HTTPS traffic to https://seaturtle.pw -# If we don't have a cert for the site the client get an error but that's fine -server { - listen 443 default_server; - listen [::]:443 default_server; - server_name _; - - # ssl conf - include /config/nginx/ssl.conf; - - return 301 https://seaturtle.pw; -} - -# Enabled sites are included in /config/nginx/nginx.conf diff --git a/madone/docker/nginx/site-confs/madone.seaturtle.pw.enabled b/madone/docker/nginx/site-confs/madone.seaturtle.pw.enabled deleted file mode 100644 index 65e2d83..0000000 --- a/madone/docker/nginx/site-confs/madone.seaturtle.pw.enabled +++ /dev/null @@ -1,39 +0,0 @@ -server { - listen 80; - listen [::]:80; - server_name madone.seaturtle.pw; - - return 301 https://madone.seaturtle.pw$request_uri; -} - -server { - listen 443 ssl; - listen [::]:443 ssl; - server_name madone.seaturtle.pw; - - # ssl conf - include /config/nginx/ssl.conf; - - client_max_body_size 1M; - - # Purposefully do not proxy main site because there's no reason somone - # should be using this domain name - location / { - return 301 https://example.com; - } - - # Proxy weechat - location /weechat { - proxy_pass http://172.17.0.1:9001; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_read_timeout 8h; - } - - # Serve misc files - location /files { - alias /files-docker; - autoindex on; - } -} diff --git a/madone/docker/nginx/site-confs/paul.walko.org.enabled b/madone/docker/nginx/site-confs/paul.walko.org.enabled deleted file mode 100644 index aa0db58..0000000 --- a/madone/docker/nginx/site-confs/paul.walko.org.enabled +++ /dev/null @@ -1,23 +0,0 @@ -server { - listen 80; - listen [::]:80; - server_name paul.walko.org; - - return 301 https://paul.walko.org$request_uri; -} - -server { - listen 443 ssl; - listen [::]:443 ssl; - server_name paul.walko.org; - - # ssl conf - include /config/nginx/ssl.conf; - - client_max_body_size 1M; - - # Proxy main site - location / { - proxy_pass https://paulwalko.github.io; - } -} diff --git a/madone/docker/nginx/site-confs/walko.org.enabled b/madone/docker/nginx/site-confs/walko.org.enabled deleted file mode 100644 index 97fc6c8..0000000 --- a/madone/docker/nginx/site-confs/walko.org.enabled +++ /dev/null @@ -1,34 +0,0 @@ -server { - listen 80; - listen [::]:80; - server_name walko.org www.walko.org; - - return 301 https://walko.org$request_uri; -} - -server { - listen 443 ssl; - listen [::]:443 ssl; - server_name www.walko.org; - - # ssl conf - include /config/nginx/ssl.conf; - - return 301 https://walko.org$request_uri; -} - -server { - listen 443 ssl; - listen [::]:443 ssl; - server_name walko.org; - - # ssl conf - include /config/nginx/ssl.conf; - - client_max_body_size 1M; - - # Proxy main site - location / { - proxy_pass https://paulwalko.github.io; - } -}