SWAG - LetsEncrypt + Reverse Proxy

From Pikes' Wiki
Revision as of 20:56, 28 January 2021 by DocGyver (talk | contribs)
Jump to navigation Jump to search
  • Install
  1. Create custom docker network for containers
    1. Disable Docker Service temporarily
    2. Enable Docker Advanced View
    3. Preserve User Networks = yes
    4. Enable Docker Service
    5. Open unraid console and create "proxynet" with
      docker network create ''proxynet''
  2. Install SWAG
    1. Go to Apps tab and search for SWAG
    2. Install with the same "proxynet" Network Type you created earlier
    3. Follow the video and copy settings from your existing LetEncrypt container if any.
    4. HTTPS port should be set to the internal target value for the router's external 443 port forward.
  3. Setup Reverse Proxy configs
    1. NextCloud
      1. Nextcloud container changes
        1. Change Nextcloud container to use "proxynet" Network Type
        2. Change the HTTPS port to something different if it had previously been the target of the router's 443 port forward
      2. Update NextCloud config.php
        1. Add trusted domain
        2. Change overwrite.cli.url to https://nextcloud.your.domain
        3. Add overwritehost => 'nextcloud.your.domain',
        4. Add overwriteprotocol => 'https',
      3. Swag\nginx\proxy-confs\nextcloud-subdomain Config (video shows letsencrypt folder not SWAG)
        1. contents should be fine as is. save-as/rename without the '.sample' extension.
    2. sonnar SWAG config