SWAG - LetsEncrypt + Reverse Proxy: Difference between revisions

From Pikes' Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
##::  docker network create ''proxynet''
##::  docker network create ''proxynet''
##::</pre>
##::</pre>
# Install SWAG
# [https://youtu.be/I0lhZc25Sro?t=959 Install SWAG]
## Go to Apps tab and search for '''SWAG'''
## Go to Apps tab and search for '''SWAG'''
## Choose Install for the  
## Install with the same "proxynet" Network Type you created earlier
## Follow the video and copy settings from your existing LetEncrypt container if any.
## HTTPS port should be set to the internal target value for the router's external 443 port forward.
# Setup Reverse Proxy configs
## NextCloud
### [https://youtu.be/I0lhZc25Sro?t=1032 Nextcloud container changes]
#### Change Nextcloud container to use "proxynet" Network Type
#### Change the HTTPS port to something different if it had previously been the target of the router's 443 port forward
### [https://youtu.be/I0lhZc25Sro?t=1335 Update NextCloud config.php]
#### Add trusted domain
#### Change overwrite.cli.url to https://nextcloud.your.domain
#### Add overwritehost => 'nextcloud.your.domain',
#### Add overwriteprotocol => 'https',
### [https://youtu.be/I0lhZc25Sro?t=1447 Swag\nginx\proxy-confs\nextcloud-subdomain Config] (video shows letsencrypt folder not SWAG)
#### contents should  be fine as is. save-as/rename without the '.sample' extension.<br/>Note: sample assumes you use 'nextcloud' as the subdomain name. If not, you need to update to the actually used name.
## [https://youtu.be/I0lhZc25Sro?t=1108 sonnar SWAG config]
*Todo
*Todo
*Notes
*Notes
*References
*References
** [https://youtu.be/I0lhZc25Sro SpaceInvader tutorial]
** [https://youtu.be/I0lhZc25Sro SpaceInvader tutorial]

Latest revision as of 17:31, 29 January 2021

  • 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.
          Note: sample assumes you use 'nextcloud' as the subdomain name. If not, you need to update to the actually used name.
    2. sonnar SWAG config