Updated TLS (markdown)

Christian Mäder 2021-02-01 08:58:19 +01:00
parent 158edb5da9
commit 08bef88df5

13
TLS.md

@ -54,20 +54,21 @@ services:
image: zazukoians/hitch image: zazukoians/hitch
environment: environment:
HITCH_PEM: /app/cert_and_key.pem # path within the container to the TLS certificate HITCH_PEM: /app/cert_and_key.pem # path within the container to the TLS certificate
HITCH_PARAMS: --backend=[nginx]:8080 --frontend=[*]:443 # listen on *:443 and forward traffic to nginx:8080 HITCH_PARAMS: --backend=[netbox]:8080 --frontend=[*]:443 # listen on *:443 and forward traffic to netbox:8080
depends_on: depends_on:
- nginx - netbox
volumes: volumes:
- ./cert_and_key.pem:/app/cert_and_key.pem # mount the TLS certificate - ./cert_and_key.pem:/app/cert_and_key.pem # mount the TLS certificate
ports: ports:
- 8443:443 # bind the container's port 443 to the host's port 8443 -> https://[::1]:8443 - 8443:443 # bind the container's port 443 to the host's port 8443;
``` ```
> **NOTE:** > **NOTE:**
> >
> Starting with Netbox Docker **0.28.0**, the `nginx` service is no longer in use. The traffic must be forwarded to the `netbox` service directly: > Prior to Netbox Docker **1.0.0**, the `nginx` service is was used to serve traffic. The traffic must be forwarded to the `nginx` service directly:
> >
> ```patch > ```patch
> - HITCH_PARAMS: --backend=[nginx]:8080 --frontend=[*]:443 # listen on *:443 and forward traffic to nginx:8080 > # Prior to Netbox Docker 1.0.0:
> + HITCH_PARAMS: --backend=[netbox]:8080 --frontend=[*]:443 # listen on *:443 and forward traffic to netbox:8080 > - HITCH_PARAMS: --backend=[netbox]:8080 --frontend=[*]:443 # listen on *:443 and forward traffic to netbox:8080
> + HITCH_PARAMS: --backend=[nginx]:8080 --frontend=[*]:443 # listen on *:443 and forward traffic to nginx:8080
> ``` > ```