Tag: Nginx Proxy Manager

  • Transfer Nginx Proxy Manager to a new server.

    Transfer Nginx Proxy Manager to a new server.

    As part of setting up my new lab server, I needed to transfer Nginx Proxy Manager from its old home to a new home. This is intended to capture what I did, in case I ever need to repeat the process.

    1. Backup npm_data/_data and npm_letsencrypt/_data locations on the old host.
    2. Migrate the stack from the old host to the new host using Portainer.
    3. Stop the new stack
      • It will create an empty installation, which is obviously not useful for me.
    4. Restore the backup of the stack volumes, replacing the ones the migration just created.
    5. Restart the stack,

    The transfer of Nginx Proxy Manager is now complete. Check that it has connectivity to the downstream servers, and then move any firewall rules so that it is now the external server rather than the old one.

    Obviously now clean up the old installation on the old docker server.

  • Using Home Assistant with a Proxy

    Using Home Assistant with a Proxy

    I use Nginx Proxy Manager to direct things around my URLs and web sites – including Home Assistant.

    Its a great product, but does mean I have to configure my applications right to route via it.

    This is a notes because I had forgetten I had done a thing!

    • Remember that in Home Assistant, there will need to be an entry under “http” in “trusted proxies” section for the server doing the work.
      • This was mainly caused by the fact that I was changing from a “co-locating” the docker containers that I use for HA and NPM to ones that had to route between servers.
        • My original values listed 172.20.x.x and I now needed to list the server IP address.