chore: improve nginx role so config can be shared and avoid unneeded duplication between roles / VMs
This commit is contained in:
parent
5b9295d3a5
commit
5d126b1ce1
4 changed files with 81 additions and 6 deletions
|
|
@ -1,11 +1,17 @@
|
|||
[Unit]
|
||||
Description=nginx container
|
||||
Requires=jellyfin.service
|
||||
After=jellyfin.service
|
||||
|
||||
[Container]
|
||||
ContainerName=nginx
|
||||
Image=ghcr.io/nginxinc/nginx-unprivileged:mainline-alpine-slim
|
||||
PublishPort=8080:8080
|
||||
Volume=/srv/nginx/tls.conf:/etc/nginx/tls.conf:ro
|
||||
PublishPort=80:8080
|
||||
PublishPort=443:8443
|
||||
Network=frontend.network
|
||||
Volume=/srv/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
Volume=/srv/nginx/conf.d:/etc/nginx/conf.d:ro
|
||||
Volume=/srv/certs:/etc/nginx/ssl:Z
|
||||
PodmanArgs=--runtime runsc --security-opt label:disable
|
||||
Label=disable
|
||||
AutoUpdate=registry
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue