Good evening, is it possible to use the stacks found in the thread to run nextcloud only in the local network and without opening ports and fix warnings such as “You are accessing this site via HTTP. We strongly suggest you configure your server to require using HTTPS instead.” and "Strict Transport-Security.
The stack I'm using is this:CodeDisplay More
version: "2.1" services: nextcloud: image: ghcr.io/linuxserver/nextcloud:latest container_name: nextcloud ##network_mode: swag_default environment: - PUID=1000 - PGID=100 volumes: - /path/to/nextcloud/config:/config - /path/to/nextcloud-data:/data - /etc/localtime:/etc/localtime:ro depends_on: - mariadb ports: - 450:443 restart: unless-stopped mariadb: image: ghcr.io/linuxserver/mariadb:latest container_name: nextclouddb ##network_mode: swag_default environment: - PUID=1000 - PGID=100 - MYSQL_ROOT_PASSWORD=YOUR_MYSQL_PASSWORD volumes: - /path/to/mariadb/config:/config - /etc/localtime:/etc/localtime:ro restart: unless-stopped
I can access to nextcloud UI and finish the configuration, but then those warnings remain even if i remove the
"#" in front of
#add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
and restart the nextcloud docker.
I would just like to use nextcloud in my lan network and access it from outside via wireguard.
You may need an open port for retrieving the cert. But that does not mean nextcloud must be accessible from outside your lan. You could add sth like the following statements to your nextcloud proxy conf file
Your clients also need a DNS entry that points your domain cloud.example.org to the local ip eg 192.168…. or they would be blocked too. Could be done via pihole if you use it.