all working services

This commit is contained in:
2020-10-04 20:57:03 -05:00
commit f14b2aefc4
5 changed files with 262 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# make sure that your dns has a cname set for bookstack and that your bookstack container is named bookstack
# Ensure you have the APP_URL Environment Variable set correctly in your Docker Run/Compose or in BookStack Env File (/www/.env)
# https://github.com/linuxserver/docker-bookstack#docker
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name kb.gminus2.duckdns.org;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
# resolver 127.0.0.11 valid=30s;
set $upstream_app bookstack;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}

View File

@@ -0,0 +1,35 @@
# redirect all traffic to https
server {
listen 80 ;
listen [::]:80 ;
server_name alcap.duckdns.org;
return 301 https://$host$request_uri;
}
# main server block
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
index index.html index.htm index.php;
server_name alcap.duckdns.org;
# all ssl related config moved to ssl.conf
include /config/nginx/ssl.conf;
client_max_body_size 50;
server_tokens off;
location / {
proxy_pass https://cocalc:443;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 3m;
proxy_send_timeout 3m;
}
}

View File

@@ -0,0 +1,30 @@
server {
listen 80;
listen [::]:80;
server_name git.gminus2.duckdns.org;
location / {
return 301 https://$server_name$request_uri;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name git.gminus2.duckdns.org;
include /config/nginx/ssl.conf;
client_max_body_size 10G;
location / {
proxy_pass http://gitea:3000;
proxy_redirect off;
proxy_set_header X-Scheme $scheme;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
}
}

View File

@@ -0,0 +1,38 @@
# make sure that your dns has a cname set for nextcloud
# assuming this container is called "swag", edit your nextcloud container's config
# located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
# 'trusted_proxies' => ['swag'],
# 'overwrite.cli.url' => 'https://nextcloud.your-domain.com/',
# 'overwritehost' => 'nextcloud.your-domain.com',
# 'overwriteprotocol' => 'https',
#
# Also don't forget to add your domain name to the trusted domains array. It should look somewhat like this:
# array (
# 0 => '192.168.0.1:444', # This line may look different on your setup, don't modify it.
# 1 => 'nextcloud.your-domain.com',
# ),
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name cloud.gminus2.duckdns.org;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
# resolver 127.0.0.11 valid=30s;
set $upstream_app cloud;
set $upstream_port 443;
set $upstream_proto https;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_max_temp_file_size 2048m;
add_header X-Content-Type-Options "nosniff" always;
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
add_header X-Frame-Options "SAMEORIGIN" always;
}
}