November 8, 20241 yr Hi all! I'm a newbie slowly setting up my home server and have a Wix-hosted website that I'd like to use a subdomain of to connect to my Nextcloud storage remotely (and potentially other dockers in future also). I have been following Spaceinvader One's tutorial on this, using Swag to connect things up but I cannot see an appropriate DNSPLUGIN available in the Swag docker setup, and Wix's API keys seem excessively long to type out into the docker terminal. I would greatly appreciate anyone's help either doing it through Swag or any other suggestions to connect the dots for me! Thanks
November 12, 20241 yr Community Expert small rant: I didn't known space invader droped a video on nextcloud, especial the aio version... That explains the suden influx of owncloud/nextcloud issues... Nextcloud issues are better asked on there forum: https://nextcloud.com/support/ I left Nextcloud for many reasons... the main question you need to ask with nextcloud due to a buch of opensoucere and community stuff is what is this product offering me and what am i using form this... where even a default config is not properly filled out and not secure at first boot/runtime... As example a simlar instace / product rejeto HFS does all of it outside of some known use case with nextclouds plugins systems that nextcloud has for owncloud/nextcloud example goole sheet like edit in web page... Regardless I can easily setup rejeto hfs 3 and be done in less than 1 hour... than have poured mutiple day in problem with nextcloud from future breaking update to confin broken bs and other occ comands. I do not recomend nextcloud... Sorry rant over.... But let see if i can help having been though some of this before... FYI, wix is a bit new to me... so take with a grain of salt... By following these steps, you can effectively use your Wix-hosted domain to access your Nextcloud instance and other services hosted on your Unraid server through SWAG. Connecting your Wix-hosted domain to your Nextcloud instance via SWAG (Secure Web Application Gateway) on your Unraid server is achievable, though it requires a few specific steps due to Wix's DNS management limitations. Here's a structured approach to guide you through the process: 1. Understand Wix's DNS Management: Wix primarily manages DNS records internally and doesn't provide direct access to modify them. This limitation means that using DNS validation methods for SSL certificate issuance through SWAG isn't feasible with Wix. However, you can still set up a reverse proxy using SWAG by employing an alternative validation method. 2. Utilize HTTP Validation for SSL Certificates: Since DNS validation isn't an option with Wix, you can use HTTP validation to obtain SSL certificates. This method requires that your domain points to your server during the validation process. Here's how to proceed: Set Up SWAG with HTTP Validation: Configure SWAG to use HTTP validation by setting the VALIDATION environment variable to http. Ensure that ports 80 and 443 are forwarded from your router to your Unraid server to allow Let's Encrypt to perform the necessary validation. Modify Wix DNS Settings: In your Wix account, access the DNS settings for your domain. Create or modify the A record for the subdomain you intend to use (e.g., nextcloud.yourdomain.com) to point to your public IP address. This change directs traffic for that subdomain to your Unraid server, enabling SWAG to handle the HTTP validation and serve your Nextcloud instance. 3. Configure SWAG for Reverse Proxy: With the DNS pointing correctly, set up SWAG to act as a reverse proxy for your Nextcloud instance: Create a Proxy Configuration File: Within the SWAG configuration directory, create a new file (e.g., nextcloud.subdomain.conf) in the proxy-confs folder. This file should contain the necessary Nginx directives to proxy requests from nextcloud.yourdomain.com to your internal Nextcloud container. Enable the Configuration: Ensure that the new proxy configuration is enabled by removing any .sample extension and verifying that the file is correctly named. Restart the SWAG container to apply the changes. 4. Test the Setup: After completing the configuration: Access Nextcloud via Subdomain: Navigate to https://nextcloud.yourdomain.com in your web browser. You should be directed to your Nextcloud login page, secured with a valid SSL certificate issued by Let's Encrypt. Verify SSL Certificate: Check that the SSL certificate is correctly installed and that the connection is secure. Additional Considerations: Future Services: For additional services, repeat the process by creating new subdomains and corresponding proxy configurations in SWAG. Security: Ensure that your Unraid server and all services are kept up to date. Implement strong passwords and consider additional security measures such as fail2ban, which is included with SWAG, to protect against unauthorized access.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.