He could choose duckdns as a validation method. Then only a port forward of port 443 is needed. The port should be available if you don't use omv gui over ssl (which can also be changed). So it would be an easy port forward 443->443. The config of letsencrypt would need to be changed accordingly.
Need help Port Forwarding/Firewall/Virtual Server
-
- OMV 5.x
- semajtttttt
-
-
He could choose duckdns as a validation method. Then only a port forward of port 443 is needed. The port should be available if you don't use omv gui over ssl (which can also be changed). So it would be an easy port forward 443->443. The config of letsencrypt would need to be changed accordingly.
I've went through that stack line by line, it's right.
I just took down my personal nextcloud and fired up vbox. After redirecting the ports to my virtual machine, I had "mycloudtest.duckdns.org" up in in about 10min.
Code
Alles anzeigenversion: "2" services: nextcloud: image: linuxserver/nextcloud:latest container_name: nextcloud environment: - PUID=1000 - PGID=100 volumes: - /srv/dev-disk-by-label-VirtualDisk/AppData/nextcloud:/config - /srv/dev-disk-by-label-VirtualDisk/VDisk/Media/.Nextcloud:/data - /etc/localtime:/etc/localtime depends_on: - mariadb ports: - 449:443 restart: unless-stopped mariadb: image: linuxserver/mariadb:latest container_name: nextclouddb environment: - PUID=1000 - PGID=100 - MYSQL_ROOT_PASSWORD=my_password ports: - 3306:3306 volumes: - /srv/dev-disk-by-label-VirtualDisk/AppData/nextclouddb:/config - /etc/localtime:/etc/localtime restart: unless-stopped duckdns: image: linuxserver/duckdns container_name: duckdns environment: - PUID=1000 - PGID=100 - SUBDOMAINS=mycloudtest - TOKEN=My-Token volumes: - /srv/dev-disk-by-label-VirtualDisk/AppData/duckdns:/config - /etc/localtime:/etc/localtime restart: unless-stopped letsencrypt: image: linuxserver/letsencrypt container_name: letsencrypt cap_add: - NET_ADMIN environment: - PUID=1000 - PGID=100 - URL=duckdns.org - SUBDOMAINS=mycloudtest - VALIDATION=http - EMAIL=myemail@gmail.com - ONLY_SUBDOMAINS=true volumes: - /srv/dev-disk-by-label-VirtualDisk/AppData/letsencrypt:/config - /etc/localtime:/etc/localtime depends_on: - duckdns ports: - 450:443 - 90:80 restart: unless-stopped
The only thing different on his, is he's on a 192.168.0.xxx vs me being on 192.168.1.xxx, so it has to be some sort of port issue between whatever 2 devices those are.
-
I just realized in that first stack, I didn't put a duckdns volume. I don't think it would be causing this issue however, as it would have just written the volume to the container, but I just edited it in.
-
I did not question your configuration. Maybe the port redirection just don't work on that router. That's why I proposed the alternative config.
I will provide a stack when I get home. -
I did not question your configuration. Maybe the port redirection just don't work on that router. That's why I proposed the alternative config.
I will provide a stack when I get home.It's just weird... I've set up Nextcloud more times than I really care to think, and I don't think I've ever had a significant issue (mostly during testing of omv 5, etc.).
-
It seems to be an issue of the router / ports. I think nextcloud is not to blame.
-
Code: docker-compose.yml
Alles anzeigenversion: "2" services: nextcloud: image: linuxserver/nextcloud:latest container_name: nextcloud environment: - PUID=1000 - PGID=100 - TZ=America/Chicago volumes: - /srv/dev-disk-by-label-NAS/appdata/NextCloud:/config - /srv/dev-disk-by-label-NAS/Nextcloud:/data depends_on: - mariadb restart: unless-stopped mariadb: image: linuxserver/mariadb:latest container_name: nextclouddb environment: - PUID=1000 - PGID=100 - TZ=America/Chicago - MYSQL_ROOT_PASSWORD=4ring_boon2_vow_annuity_Range_1marie volumes: - /srv/dev-disk-by-label-NAS/appdata/Nextclouddb:/config restart: unless-stopped duckdns: image: linuxserver/duckdns container_name: duckdns environment: - PUID=1000 - PGID=100 - TZ=America/Chicago - SUBDOMAINS=jtaylor91-games,jtaylor91-media,jtaylor91-nextcloud - TOKEN=197b0560-8d59-4487-93a7-9210b947e641 volumes: /srv/dev-disk-by-label-NAS/appdata/duckDNS:/config restart: unless-stopped letsencrypt: image: linuxserver/letsencrypt container_name: letsencrypt cap_add: - NET_ADMIN environment: - PUID=1000 - PGID=100 - URL=duckdns.org - SUBDOMAINS=wildcard - VALIDATION=duckdns - EMAIL=semajtttttt@gmail.com - ONLY_SUBDOMAINS=true - TZ=America/Chicago volumes: /srv/dev-disk-by-label-NAS/appdata/letsEncrypt:/config depends_on: - duckdns ports: - 443:443 restart: unless-stopped
Try this stack in Portainer. If you have SSL enabled for OMV GUI you have to change its port under general settings to something other than 443. In your router forward port 443 to your OMV machine.
You should also change your MariaDB-Root-Password and maybe recreate your duckdns token, cause these sensitive infos are all visible in the config files you provided. -
Ill try this at home. And I should have changed that in some way for safety. But I didn't want to miss something important either.
-
Its good to get all information for troubleshooting.
When you get it to work change the parameters. -
Ok tried that and resulted in the same error.
-
Ok how about vpn. Would that get the result of more secure connection to nextcloud? Instead of trying letsencrypt?
-
I still can't understand why you're having issues... your settings are right.
-
I wonder if a firmware update might be in order for the router, the image gives the firmware version as 1.09 but the D-Link site does display a later version.
Port forward also gives a how to on port forwarding for this router
-
Direct Port forwards seem to work because the OP said that he has working forwards for his game servers.
@semajtttttt Did you delete the static data of the dockers before reinstalling them? -
Yeah I saw that but Port forward suggests that whatever you are forwarding too the server should have a static ip.
The failure points to networking, or as you have suggested stale configs.
-
Sorry for late replay. I took a rest from it to see if I could have a "fresher" set of eyes.
@Morlan if you are meaning by completely deleting all data in the app data folder, and deleting are persistent data, as portainer asks, then yes I have. if you are not then i'm not sure what you mean or how to complete said tasks.
@geaves I have yet to update my firmware, though I am going to try this soon. Also I didn't have a static ip set until last night and it was not completely set until this afternoon *set static IP and netmask without the gateway, woops, the got the gateway this afternoon*
Update: I have updated the firmware of my router. Will likely test this tomorrow.
-
@Morlan if you are meaning by completely deleting all data in the app data folder, and deleting are persistent data, as portainer asks, then yes I have. if you are not then i'm not sure what you mean or how to complete said tasks.
Yes I meant that.
-
Update ran it with the new firmware and the stack you provided and still no dice. Did give me a new error though. Check my dns toekn which I did and it is correct. I did change it as you suggested and updated it in the stack and still it didn't work.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!