Hi Forum,
i had this setup 2 weeks ago up and running. Since i had a HW failure, i needed a new MainBoard, CPU and RAM.
Now to my problem... i cant reach to my Nextcloud, Bitwarden and GiTea over the internet via https.
All the Containers come up without problem. Logs shows no error...
I deleted all the Containers and the volumes to see if i can solve the error but nothing.
i'm desperate searching the error since 1 week allredy...
DuckDNS
Code: docker-compose.yml
version: "2"
services:
duckdns:
image: linuxserver/duckdns
container_name: duckdns
env_file:
- ./duckdns.env
volumes:
- /var/docker/appdata/duckdns/:/config
restart: unless-stopped
Code: duckdns.env
PUID=1001
PGID=100
TZ=Europe/Zurich
SUBDOMAINS=mysubdomain
TOKEN=TOKEN_FROM_DNS_SERVICE_PROVIDER
Letsencrypt
Code: docker-compose.yml
version: "2"
services:
letsencrypt:
image: linuxserver/letsencrypt
container_name: letsencrypt
cap_add:
- NET_ADMIN
env_file:
- ./letsencrypt.env
volumes:
- /var/docker/appdata/letsencrypt/:/config
depends_on:
- duckdns
networks:
- proxy
ports:
- 444:443
restart: unless-stopped
networks:
proxy:
Alles anzeigen
Code: letsencrypt.env
PUID=1001
PGID=100
TZ=Europe/Zurich
URL=mysubdomain.duckdns.org
SUBDOMAINS=wildcard
VALIDATION=duckdns
DUCKDNSTOKEN=TOKEN_FROM_DNS_SERVICE_PROVIDER
EMAIL=EMAIL@EMAIL.COM
NextCloud
Code: docker-compose.yml
version: "2"
services:
nextcloud:
image: linuxserver/nextcloud
container_name: nextcloud
environment:
- PUID=1001
- PGID=100
- TZ=Europe/Zurich
volumes:
- /var/docker/appdata/nextcloud/config:/config
- /sharedfolders/nextcloud/:/data
ports:
- 445:443
- 82:80
restart: unless-stopped
networks:
default:
external:
name: letsencrypt_proxy
Alles anzeigen
I did also the Modification on the Letsencrypt-ReverseProxy-Conf and on the Nextcloud Conig.php
looks like this:
PHP
<?php
$CONFIG = array (
'trusted_domains' =>
array (
0 => '192.168.1.130:445',
1 => 'nextcloud.mysubdomain.duckdns.org',
),
'trusted_proxies' => ['letsencrypt'],
'overwrite.cli.url' => 'https://nextcloud.mysubdomain.duckdns.org/',
'overwritehost' => 'nextcloud.mysubdomain.duckdns.org',
'overwriteprotocol' => 'https',
...
);
Alles anzeigen
Code: nextcloud.subdomain.conf
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name nextcloud.*;
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_nextcloud nextcloud;
proxy_max_temp_file_size 2048m;
proxy_pass https://$upstream_nextcloud:443;
}
}
Alles anzeigen
many Thanks for the help!
Regards
etfraxor