mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-12-12 01:30:44 +01:00
Use /etc/ssl/private/ instead of /root/certs/
parent
107a217829
commit
908d9be875
16
TLS.md
16
TLS.md
@ -23,9 +23,9 @@ netbox.example.org, netbox.prod.example.org { # This line should match the ALL
|
|||||||
reverse_proxy netbox:8080
|
reverse_proxy netbox:8080
|
||||||
encode gzip zstd
|
encode gzip zstd
|
||||||
|
|
||||||
tls /root/certs/cert.crt /root/certs/key.key
|
tls /etc/ssl/private/cert.crt /etc/ssl/private/key.key
|
||||||
# or:
|
# or:
|
||||||
# tls /root/certs/cert.pem
|
# tls /etc/ssl/private/cert.pem
|
||||||
|
|
||||||
log {
|
log {
|
||||||
level error
|
level error
|
||||||
@ -44,8 +44,8 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- netbox
|
- netbox
|
||||||
volumes:
|
volumes:
|
||||||
- ./cert.crt:/root/certs/cert.crt:ro,z
|
- ./cert.crt:/etc/ssl/private/cert.crt:ro,z
|
||||||
- ./key.key:/root/certs/key.key:ro,z
|
- ./key.key:/etc/ssl/private/key.key:ro,z
|
||||||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||||
ports:
|
ports:
|
||||||
- 80:80 # Allows for http redirection
|
- 80:80 # Allows for http redirection
|
||||||
@ -104,7 +104,7 @@ Use these two certificates with the setup proposed above:
|
|||||||
reverse_proxy netbox:8080
|
reverse_proxy netbox:8080
|
||||||
encode gzip zstd
|
encode gzip zstd
|
||||||
|
|
||||||
tls /root/certs/cert.crt /root/certs/key.key
|
tls /etc/ssl/private/cert.crt /etc/ssl/private/key.key
|
||||||
|
|
||||||
log {
|
log {
|
||||||
level error
|
level error
|
||||||
@ -120,14 +120,16 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- netbox
|
- netbox
|
||||||
volumes:
|
volumes:
|
||||||
- ./localhost+2.pem:/root/certs/cert.crt:ro,z
|
- ./localhost+2.pem:/etc/ssl/private/cert.crt:ro,z
|
||||||
- ./localhost+2-key.pem:/root/certs/key.key:ro,z
|
- ./localhost+2-key.pem:/etc/ssl/private/key.key:ro,z
|
||||||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||||
ports:
|
ports:
|
||||||
- 80:80 # Allows for http redirection
|
- 80:80 # Allows for http redirection
|
||||||
- 443:443
|
- 443:443
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Run `docker-compose up` and then you're able to access NetBox at https://localhost.
|
||||||
|
|
||||||
## About _hitch_
|
## About _hitch_
|
||||||
|
|
||||||
Originally, [hitch](https://hitch-tls.org/) was suggested to use as a TLS proxy.
|
Originally, [hitch](https://hitch-tls.org/) was suggested to use as a TLS proxy.
|
||||||
|
Loading…
Reference in New Issue
Block a user