Various improvements #6

Closed
jjkiers wants to merge 0 commits from various-improvements into main
Owner

Added

  • Added a systemd unit file

Changed

  • Updated all dependencies
  • Rename the project to l4p
  • Updated dependencies
  • Reworked internals a bit

Removed

  • Removed kcp protocol support
*Added* * Added a systemd unit file *Changed* * Updated all dependencies * Rename the project to `l4p` * Updated dependencies * Reworked internals a bit *Removed* * Removed `kcp` protocol support
jjkiers added 22 commits 2024-02-23 23:03:52 +00:00
da46c5873f Fix typo
Signed-off-by: Jacob Kiers <code@kiers.eu>
8dae1126d5 Deduplicate copy method
Signed-off-by: Jacob Kiers <code@kiers.eu>
2651ec1f4a Fix kcp module
Signed-off-by: Jacob Kiers <code@kiers.eu>
a574163aef Rename Upstream::Custom to Upstream::Proxy
And CustomUpstream to ProxyToUpstream.

Signed-off-by: Jacob Kiers <code@kiers.eu>
9564fbed6e Fix clippy warnings
Signed-off-by: Jacob Kiers <code@kiers.eu>
ae594135a1 Update dependencies
Signed-off-by: Jacob Kiers <code@kiers.eu>
84f0499ec8 Remove unnecessary manual Default implementations
Signed-off-by: Jacob Kiers <code@kiers.eu>
23296c6436 Improve code style
Signed-off-by: Jacob Kiers <code@kiers.eu>
8404f38182 Move ProxyToUpstream parsing to TryFrom trait
This seems cleaner to me than parsing it externally.

Signed-off-by: Jacob Kiers <code@kiers.eu>
2116659a14 Sort dependencies
Signed-off-by: Jacob Kiers <code@kiers.eu>
3a2367ef28 Moved upstreams to their own dedicated namespace
Signed-off-by: Jacob Kiers <code@kiers.eu>
07fccb6b2a Clippy
Signed-off-by: Jacob Kiers <code@kiers.eu>
17b39dc6bc Prepare for new config version
Signed-off-by: Jacob Kiers <code@kiers.eu>
bb81a32349 Deduplicate some code
Signed-off-by: Jacob Kiers <code@kiers.eu>
ec9ab1d2bc Add example systemd unit with security protections
This is just about as secure as this process can get

Signed-off-by: Jacob Kiers <code@kiers.eu>
77bc8364f2 Update dependencies to latest versions
Signed-off-by: Jacob Kiers <code@kiers.eu>
ee67f7883e Rename to l4p, update references and README.md
Signed-off-by: Jacob Kiers <code@kiers.eu>
continuous-integration/drone/push Build is passing Details
9d9f89881d
Improve config file handling
Signed-off-by: Jacob Kiers <code@kiers.eu>
59c7128f93 Remove kcp support
Signed-off-by: Jacob Kiers <code@kiers.eu>
97b4bf6bbe Solve synchronization issue
The async mutex in the previous variant would fail when used in a single
threaded mode, because block_in_place() cannot be used there.

Instead, replace the code with a Arc<RwLock> inside of the
UpstreamAddress to let that class take care of its own mutability.

Signed-off-by: Jacob Kiers <code@kiers.eu>
6284870059 Rename config::config to config::config_v1
To prevent module inception, which was a clippy warning.

Signed-off-by: Jacob Kiers <code@kiers.eu>
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
4592c94586
Reintroduce L4P_CONFIG environment variable
This points to a user-configured configuration file.

Closes #5.

Signed-off-by: Jacob Kiers <code@kiers.eu>
jjkiers closed this pull request 2024-02-23 23:06:55 +00:00
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jjkiers/layer4-proxy#6
No description provided.