Docs: allinea deploy commenti al middleware dedicato
This commit is contained in:
parent
b4cadbe934
commit
adc2cb42e1
|
|
@ -213,14 +213,24 @@ Sull'host, con la copia di lavoro aggiornata (per esempio
|
|||
```sh
|
||||
podman build -t localhost/astro-comments:latest /opt/astro-blog/services/astro-comments
|
||||
podman rm -f astro-comments
|
||||
podman run -d --name astro-comments --network web \
|
||||
--env-file /opt/astro-comments-data/comments.env \
|
||||
podman run -d --name astro-comments --network web --ip 10.89.1.20 \
|
||||
--env-file /opt/astro-comments/astro-comments.env \
|
||||
-l traefik.enable=true \
|
||||
-l traefik.docker.network=web \
|
||||
-l 'traefik.http.routers.comments.rule=Host(`comments.194.164.167.80.nip.io`)' \
|
||||
-l 'traefik.http.routers.comments.entrypoints=websecure' \
|
||||
-l 'traefik.http.routers.comments.middlewares=authelia@docker' \
|
||||
-l 'traefik.http.routers.comments.tls=true' \
|
||||
-l 'traefik.http.routers.comments.tls.certresolver=le' \
|
||||
-l 'traefik.http.routers.comments.entrypoints=web' \
|
||||
-l 'traefik.http.routers.comments.middlewares=comments-https-redirect@docker' \
|
||||
-l 'traefik.http.routers.comments-tls.rule=Host(`comments.194.164.167.80.nip.io`)' \
|
||||
-l 'traefik.http.routers.comments-tls.entrypoints=websecure' \
|
||||
-l 'traefik.http.routers.comments-tls.tls=true' \
|
||||
-l 'traefik.http.routers.comments-tls.tls.certresolver=le' \
|
||||
-l 'traefik.http.routers.comments-tls.middlewares=authelia-comments@docker' \
|
||||
-l 'traefik.http.routers.comments-tls.service=comments' \
|
||||
-l 'traefik.http.middlewares.authelia-comments.forwardauth.address=http://authelia:9091/api/authz/forward-auth' \
|
||||
-l 'traefik.http.middlewares.authelia-comments.forwardauth.trustForwardHeader=false' \
|
||||
-l 'traefik.http.middlewares.authelia-comments.forwardauth.authResponseHeaders=Remote-User,Remote-Email,Remote-Name' \
|
||||
-l 'traefik.http.middlewares.comments-https-redirect.redirectscheme.scheme=https' \
|
||||
-l 'traefik.http.middlewares.comments-https-redirect.redirectscheme.permanent=true' \
|
||||
-l 'traefik.http.services.comments.loadbalancer.server.port=8080' \
|
||||
localhost/astro-comments:latest
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue