17 lines
381 B
Plaintext
17 lines
381 B
Plaintext
# verifier-api — reverse-proxy на Fastify (:3030).
|
|
server {
|
|
listen 443 ssl;
|
|
server_name api.verify.example.coop;
|
|
|
|
location /v1/ {
|
|
proxy_pass http://127.0.0.1:3030;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $host;
|
|
}
|
|
location /metrics {
|
|
allow 127.0.0.1;
|
|
deny all;
|
|
proxy_pass http://127.0.0.1:3030;
|
|
}
|
|
}
|