Created
July 13, 2024 05:34
-
-
Save Tech500/46aa48b709757b58030740619125aada to your computer and use it in GitHub Desktop.
Setup Docker "Nginx-Proxy-Manager" for http to https with "Let's Encrypt" SSL certificate.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
My Notes: | |
Using Docker container "nginx-proxy-manager" available on Dockerhub. Have "Portainer" for manageing Docker containers | |
running on a Raspberry Pi 4. | |
-------------------------------------------------------------------- | |
ChatGPT: | |
Correct Configuration Steps | |
Access Nginx Proxy Manager Interface: | |
Log in to the Nginx Proxy Manager interface through your web browser. | |
Add a New Proxy Host: | |
Go to the "Proxy Hosts" section and click "Add Proxy Host." | |
Configure the Basic Settings: | |
Domain Names: Enter wetlandpond.duckdns.org. | |
Scheme: Select https. | |
Forward Hostname/IP: Enter weather-observations.live. | |
Forward Port: Enter 443 (since it’s HTTPS). | |
Websockets Support: Check if needed. | |
Block Common Exploits: Check if needed. | |
Access List: Configure if you need access control. | |
Use the Custom Locations Tab: | |
Define the correct location path: | |
Click on the "Custom Locations" tab. | |
Add a new location by clicking "Add Location." | |
Location: Enter /videofeed.html. | |
Scheme: Select https. | |
Forward Hostname/IP: Enter weather-observations.live. | |
Forward Port: Enter 443. | |
Websockets Support: Check if needed. | |
Block Common Exploits: Check if needed. | |
Configure the SSL Settings: | |
Go to the "SSL" tab. | |
Enable SSL: Check this box. | |
Force SSL: Check this box. | |
HTTP/2 Support: Check this box if needed. | |
HSTS Enabled: Check this box if needed. | |
SSL Certificate: Select an existing Let's Encrypt certificate or issue a new one. | |
If you choose to issue a new certificate: | |
Enable the "Use Let's Encrypt" option. | |
Enter your email address for Let's Encrypt notifications. | |
Agree to the terms of service. | |
Click "Save" to issue the certificate and apply the settings. | |
Example Summary: | |
Basic Proxy Host Configuration: | |
Domain Names: wetlandpond.duckdns.org | |
Scheme: https | |
Forward Hostname/IP: weather-observations.live | |
Forward Port: 443 | |
Websockets Support: Checked if needed | |
Block Common Exploits: Checked if needed | |
Access List: As required | |
Custom Locations: | |
Location: /videofeed.html | |
Scheme: https | |
Forward Hostname/IP: weather-observations.live | |
Forward Port: 443 | |
SSL Configuration: | |
Enable SSL: Checked | |
Force SSL: Checked | |
HTTP/2 Support: Checked if needed | |
HSTS Enabled: Checked if needed | |
Use Let's Encrypt: Enabled and configured | |
Troubleshooting "Internal Error No Message": | |
If you still encounter the "internal error no message," follow these steps: | |
Check the Logs: | |
View the logs of the Nginx Proxy Manager container for more details: | |
bash | |
Copy code | |
docker logs <container_id_or_name> | |
Ensure No Conflicting Entries: | |
Verify there are no conflicting entries for wetlandpond.duckdns.org or the paths you are configuring. | |
Restart the Container: | |
Restart the Nginx Proxy Manager container: | |
bash | |
Copy code | |
docker restart <container_id_or_name> | |
Clear Browser Cache: | |
Clear your browser cache or try accessing the Nginx Proxy Manager interface in an incognito window. | |
Conclusion | |
By properly setting the location to /videofeed.html in the "Custom Locations" tab, you ensure that requests | |
to wetlandpond.duckdns.org correctly forward to https://weather-observations.live/videofeed.html. This should | |
resolve the internal error if all other settings are correct. | |
All responses are from ChatCPT. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment