45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
Source: https://nginxproxymanager.com/setup/
|
|
|
|
|
|
Go to the management your IP:81
|
|
|
|
Default login: admin @example.com changeme
|
|
|
|
|
|
Nginx Advanced Setup
|
|
https://nginxproxymanager.com/advanced-config/
|
|
|
|
Add this to the bottom of your nginx compose file
|
|
|
|
'test'
|
|
|
|
```
|
|
networks:
|
|
default:
|
|
external: true
|
|
name: nginx
|
|
```
|
|
|
|
You will need to add this to every docker container(compose file) that you want Nginx to redirect
|
|
|
|
Comment out the ports on any docker container(ie wordpress) you add this external network to
|
|
|
|
You will use the original port (ie 80, whichever port is to the right in the compose file) for the redirect port in the setup
|
|
|
|
You will use the Docker name instead of the IP
|
|
|
|
|
|
|
|
Nginx random notes
|
|
https://cjroeser.com/2025/01/20/homelab-networking-cloudflare-nginx-split-dns/
|
|
Add section on setting up certs
|
|
Add section on port forward https and http?
|
|
|
|
|
|
|
|
Nginx troubleshooting
|
|
Most of these issues I came across while using Cloudflare
|
|
|
|
If having an error message for too many redirects: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/852
|
|
"The cloudflare proxy does not actually follow the redirect nginx sends, which results in this error. You probably need to set the SSL/TLS encryption mode to Full or Full (Strict) or remove the additional CloudFlare proxy."
|