lightninglabs / lightninglabs/aperture

Support to add prefix and extra header to address field

Open
#157 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
268
Forks
78
Avg merge
22h 25m
Merged PRs (30d)
1

Description

There should be a parameter to include a prefix in the address field. Currently, adding a complete URL to the address results in a `502 Bad Gateway` error. Additionally, a feature to include extra headers in the configuration should be supported.

The service configuration file (`aperture.yaml`) should look like this:
```
- name: "service1"
hostregexp: "^localhost:8081$"
pathregexp: '^/api$'
address: "0.0.0.0:443"
protocol: https
header:
Authorization: "Bearer key"
price: 10
rewrite:
prefix: "/path/to/api"
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the service configuration represented by aperture.yaml, then trace how address, protocol, and request forwarding are parsed and applied. Check existing proxy or configuration tests if present. Done means a complete URL address no longer causes a 502, rewrite.prefix is honored, and configured extra headers such as Authorization are forwarded.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.