deploy(minor): fix robots.txt not being in the right path
fix path matching in docker compose
This commit is contained in:
		| @ -77,7 +77,7 @@ services: | |||||||
|     networks: |     networks: | ||||||
|       - internal |       - internal | ||||||
|     labels: |     labels: | ||||||
|       - traefik.frontend.rule=PathPrefix:/static |       - traefik.frontend.rule=PathPrefix:/static, /robots.txt | ||||||
|       - traefik.port=80 |       - traefik.port=80 | ||||||
|       - traefik.docker.network=internal |       - traefik.docker.network=internal | ||||||
|   traefik: |   traefik: | ||||||
|  | |||||||
| @ -41,7 +41,7 @@ http { | |||||||
|         gunzip on; |         gunzip on; | ||||||
|         add_header X-passbook-Version 0.4.2-beta; |         add_header X-passbook-Version 0.4.2-beta; | ||||||
|         add_header Vary X-passbook-Version; |         add_header Vary X-passbook-Version; | ||||||
|         root /static/; |         root /data/; | ||||||
|  |  | ||||||
|         location /_/healthz { |         location /_/healthz { | ||||||
|             return 204; |             return 204; | ||||||
|  | |||||||
| @ -12,5 +12,6 @@ RUN ./manage.py collectstatic --no-input | |||||||
|  |  | ||||||
| FROM nginx:latest | FROM nginx:latest | ||||||
|  |  | ||||||
| COPY --from=static-build /app/static /static/static/ | COPY --from=static-build /app/static /data/static/ | ||||||
|  | COPY --from=static-build /app/static/robots.txt /data/robots.txt | ||||||
| COPY ./passbook/core/nginx.conf /etc/nginx/nginx.conf | COPY ./passbook/core/nginx.conf /etc/nginx/nginx.conf | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Langhammer, Jens
					Langhammer, Jens