Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. SSH into your NGINX proxy machine
  2. become sudo
    Code Block
    sudo su
  3. Go to nginx folder 
    Code Block
    cd /opt/nginx-proxy/
  4. create an empty file called _hsts_map.conf 
    Code Block
    touch _hsts_map.conf
  5. Update the docker-compose file with the new line (see the one in yellow in the screenshot below - /opt/nginx-proxy/_hsts_map.conf:/app/templates/_hsts_map.conf) and save

    Code Block
    vi docker-compose.yml
  6. restart container (in newer versions of docker compose it might be docker compose)
    Code Block
    docker-compose up -d
  7. Now login to your NGINX Proxy Manager UI and modify the hosts according to your needs as shown in the below example ( remember you need to add a custom section into the configuration also to work properly: rewrite /api/(.*) /$1  break; to work properly. (e.g. /api or others depending on your need)

Example: