Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docker_notes:docker-reverse-proxy [2024-06-04 Tue wk23 13:04] – [Generate and Install Godaddy DNS Challenge Data] baumkp | docker_notes:docker-reverse-proxy [2025-01-07 Tue wk02 09:00] (current) – [Cloudsec] baumkp | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
- | ======Reverse Proxy Server====== | + | ======Reverse Proxy Server |
- | I seem to have gotten the Traefik reverse proxy working according to Techno Tim [[https:// | + | I seem to have gotten the Traefik reverse proxy working according to Techno Tim [[https:// |
Below is a basic description of the process that aligns with my configuration files. I do this for 2 reasons, both allowing me independence. | Below is a basic description of the process that aligns with my configuration files. I do this for 2 reasons, both allowing me independence. | ||
Line 31: | Line 31: | ||
\\ | \\ | ||
====Generate and Install Godaddy DNS Challenge Data==== | ====Generate and Install Godaddy DNS Challenge Data==== | ||
- | Godaddy changed their policies circa April 2024 that basically does not give small users access to their developers API system. | + | Godaddy changed their policies circa April 2024 that basically does not give small users access to their developers API system. |
+ | |||
+ | My domain is still registered via Godaddy, I expect that I will look at moving to another registry when the registration comes due. I do not wish to support Godaddy going forward with my business. | ||
++++Old, tl;dr;| | ++++Old, tl;dr;| | ||
Line 62: | Line 64: | ||
=====Traefik Routes Config===== | =====Traefik Routes Config===== | ||
+ | |||
+ | ====Using labels in docker config files==== | ||
+ | |||
+ | [[https:// | ||
+ | ===Typical labels in Docker Compose=== | ||
+ | |||
+ | <code yml> | ||
+ | # Enable Traefik for this service | ||
+ | - " | ||
+ | # Tell Traefik to specifically use the network " | ||
+ | - " | ||
+ | # Make Traefik use this domain in HTTP | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | # Middleware to redirect HTTP to HTTPS | ||
+ | - " | ||
+ | # Make Traefik use this domain in HTTPS | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | # Specify the specific resolver to use | ||
+ | #- " | ||
+ | - " | ||
+ | - " | ||
+ | # Define the port inside of the Docker service to use | ||
+ | - " | ||
+ | |||
+ | When the docker compose '' | ||
+ | |||
+ | *Traefik: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | *[[https:// | ||
+ | *[[https:// | ||
+ | ====Using config.yml==== | ||
<code bash [enable_line_numbers=" | <code bash [enable_line_numbers=" | ||
nvim config.yml</ | nvim config.yml</ | ||
Line 77: | Line 121: | ||
│ | │ | ||
└── docker-compose.yml</ | └── docker-compose.yml</ | ||
+ | |||
+ | *Traefik: | ||
+ | *[[https:// | ||
=====whitelisting===== | =====whitelisting===== | ||
The Traefik middleware ipWhitelist only allows the define ip address(es) to be forwarded. | The Traefik middleware ipWhitelist only allows the define ip address(es) to be forwarded. | ||
Line 122: | Line 169: | ||
* Nginxproxymanager.com [[https:// | * Nginxproxymanager.com [[https:// | ||
- | ====ssl certificates==== | + | ====ssl certificates |
*'' | *'' | ||
*'' | *'' | ||
Line 183: | Line 230: | ||
- | <- docker_notes: | + | <- docker_notes: |