quality / commitlint (push) Skipped
quality / changes (push) Successful in 20s
quality / docker-check (push) Skipped
quality / openapi (push) Successful in 2m54s
quality / web (push) Successful in 1m22s
quality / go (push) Successful in 3m37s
quality / bird2 (push) Successful in 15s
CD / quality (push) Successful in 8m37s
CD / publish (push) Failing after 1m51s
- Added `@redocly/cli` version 1.34.5 to `package.json` and `pnpm-lock.yaml` for OpenAPI linting. - Updated CI workflows to reflect changes in job names and processes, including adjustments to the `publish` job in the CD workflow. - Enhanced documentation to clarify the new CI/CD processes and Docker build configurations.
34 lines
1.2 KiB
Nginx Configuration File
34 lines
1.2 KiB
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
gzip on;
|
|
gzip_types text/css application/javascript application/json image/svg+xml;
|
|
gzip_min_length 256;
|
|
|
|
# Docker embedded DNS: без resolver nginx кэширует IP upstream при старте —
|
|
# после recreate evobgp-all остаётся 502 (connection refused на старый IP).
|
|
resolver 127.0.0.11 valid=10s ipv6=off;
|
|
set $evobgp_upstream evobgp-api;
|
|
|
|
location /v1/ {
|
|
# С переменной в proxy_pass нельзя полагаться на замену URI — передаём $request_uri целиком.
|
|
proxy_pass http://$evobgp_upstream:8080$request_uri;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
|
|
}
|
|
|
|
location = /metrics {
|
|
proxy_pass http://$evobgp_upstream:8080/metrics;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|