# /etc/riverworks/conf.d/station-api.conf # Exported from station gateway R14. upstream station_api { server 127.0.0.1:8080; keepalive 4; } map $http_x_station_gateway $station_gateway_mark { default ""; trusted "trusted"; } server { listen 80 default_server; server_name station.local; client_max_body_size 12k; location = /health { access_log off; proxy_pass http://station_api; } location /api/station/ { proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Request-ID $request_id; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Station-Gateway $station_gateway_mark; proxy_pass http://station_api; } location = /api/station/diagnostic { proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Station-Gateway $station_gateway_mark; proxy_pass http://station_api; } }