Status del proxy
Running
Container up
Target: /apps/lf-domain-smoke-proxy
Container up
Target: /apps/lf-domain-smoke-proxy
services:
lf-domain-smoke-proxy:
image: nginx:alpine
container_name: lf-domain-smoke-proxy
restart: unless-stopped
networks:
- proxy
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- /data/landings/instintosocial:/usr/share/nginx/html:ro
labels:
- traefik.enable=true
- traefik.docker.network=proxy
# Service
- traefik.http.services.lf-domain-smoke-proxy.loadbalancer.server.port=80
# HTTP -> HTTPS redirect
- "traefik.http.routers.lf-domain-smoke-web.rule=Host(`smoke-proxy.mbcontenidos.com`)"
- traefik.http.routers.lf-domain-smoke-web.entrypoints=web
- traefik.http.routers.lf-domain-smoke-web.service=lf-domain-smoke-proxy
- traefik.http.routers.lf-domain-smoke-web.middlewares=lf-domain-smoke-https-redirect
- traefik.http.middlewares.lf-domain-smoke-https-redirect.redirectscheme.scheme=https
- traefik.http.middlewares.lf-domain-smoke-https-redirect.redirectscheme.permanent=true
# HTTPS landing
- "traefik.http.routers.lf-domain-smoke.rule=Host(`smoke-proxy.mbcontenidos.com`)"
- traefik.http.routers.lf-domain-smoke.entrypoints=websecure
- traefik.http.routers.lf-domain-smoke.tls.certresolver=le
- traefik.http.routers.lf-domain-smoke.service=lf-domain-smoke-proxy
- traefik.http.routers.lf-domain-smoke.priority=1000
# HTTPS thanks page
- "traefik.http.routers.lf-domain-smoke-thanks.rule=Host(`gracias.smoke-proxy.mbcontenidos.com`)"
- traefik.http.routers.lf-domain-smoke-thanks.entrypoints=websecure
- traefik.http.routers.lf-domain-smoke-thanks.tls.certresolver=le
- traefik.http.routers.lf-domain-smoke-thanks.service=lf-domain-smoke-proxy
- "traefik.http.routers.lf-domain-smoke-thanks-web.rule=Host(`gracias.smoke-proxy.mbcontenidos.com`)"
- traefik.http.routers.lf-domain-smoke-thanks-web.entrypoints=web
- traefik.http.routers.lf-domain-smoke-thanks-web.middlewares=lf-domain-smoke-https-redirect
networks:
proxy:
external: true
worker_processes 1;
events { worker_connections 1024; }
http {
access_log /dev/stdout;
error_log /dev/stderr warn;
sendfile on;
include /etc/nginx/mime.types;
default_type application/octet-stream;
add_header X-Served-By lf-domain-smoke-proxy always;
server {
listen 80;
server_name smoke-proxy.mbcontenidos.com;
root /usr/share/nginx/html;
index index.html;
location ~* \.(?:css|js|mjs|png|jpg|jpeg|gif|webp|svg|ico|woff2|woff|ttf|eot)$ {
expires 7d;
add_header Cache-Control "public, max-age=604800";
try_files $uri =404;
}
location / {
try_files $uri $uri/ /index.html;
}
}
server {
listen 80;
server_name gracias.smoke-proxy.mbcontenidos.com;
root /usr/share/nginx/html/gracias;
index index.html;
location ~* \.(?:css|js|mjs|png|jpg|jpeg|gif|webp|svg|ico|woff2|woff|ttf|eot)$ {
expires 1h;
add_header Cache-Control "public, max-age=3600";
try_files $uri =404;
}
location / {
try_files $uri $uri/ /index.html;
}
}
}
- "traefik.http.routers.lf-checkout-lf-domain-smoke.rule=Host(`checkout.smoke-proxy.mbcontenidos.com`)" - "traefik.http.routers.lf-checkout-lf-domain-smoke.entrypoints=websecure" - "traefik.http.routers.lf-checkout-lf-domain-smoke.tls.certresolver=le" - "traefik.http.routers.lf-checkout-lf-domain-smoke.service=lf-checkout"
{
"landing": {"match_host": "smoke-proxy.mbcontenidos.com", "match_path_prefix": "/lf-domain-smoke", "pageview": true, "viewcontent": true, "lead": true},
"checkout": {"match_host": "checkout.smoke-proxy.mbcontenidos.com", "match_path_prefix": "/c/", "initiatecheckout": true, "addpaymentinfo": true}
}
lf-meta: https://smoke-proxy.mbcontenidos.com, https://checkout.smoke-proxy.mbcontenidos.com, https://gracias.smoke-proxy.mbcontenidos.com
lf-payments: https://checkout.smoke-proxy.mbcontenidos.com