Newer
Older
bibcnrs / nginx / dev-proxy.nginx.conf
@join join on 29 Jan 808 bytes first commit
server {
  listen 8000;

  location / {
    proxy_pass http://bibcnrs-dev-front:5173;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;
  }

  location /api {
    rewrite /api/(.*) /$1  break;
    proxy_pass http://bibcnrs-dev-api:3000;
  }

  location /admin {
    proxy_pass http://bibcnrs-dev-admin:3011;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;
  }

  location /dev/adminer {
    rewrite /dev/adminer/(.*) /$1  break;
    proxy_pass http://bibcnrs-dev-api-adminer:8080;
  }

  location /dev/maildev {
    rewrite /dev/maildev/(.*) /$1  break;
    proxy_pass http://bibcnrs-dev-api-mail:1080;
  }

  location /files {
    root /usr/share/nginx/html;
  }
}