Lightweight tool for handling (sub-)domain to URL redirects instead of having to deal with copy and pasting proxy rules
Find a file
Neshura 7cb109018d
All checks were successful
Run Tests on Code / run-tests (push) Successful in 36s
Build and release binary file and packages / upload-generic-package (push) Successful in 1s
Build and release binary file and packages / create-release (push) Successful in 7s
Build and release binary file and packages / test (push) Successful in 35s
Build and release binary file and packages / build (push) Successful in 47s
Build and release binary file and packages / upload-debian-package (push) Successful in 1s
Release 1.0.2
2024-04-10 23:29:55 +02:00
.forgejo/workflows Revert previous 2024-04-10 23:00:33 +02:00
.idea Initial Prototype 2024-04-08 17:17:25 +02:00
debian Added default config to debian package + turned service file back into root run service 2024-04-08 22:12:54 +02:00
src Only Output "Using domains.toml" when config contains any redirects 2024-04-10 23:29:43 +02:00
.gitignore Initial Prototype 2024-04-08 17:17:25 +02:00
Cargo.lock Release 1.0.2 2024-04-10 23:29:55 +02:00
Cargo.toml Release 1.0.2 2024-04-10 23:29:55 +02:00
LICENSE Initial commit 2024-04-08 15:15:25 +00:00
README.md Updated Readme 2024-04-10 23:28:23 +02:00

DomainLink

Lightweight tool for handling (sub-)domain to URL redirects instead of having to deal with copy and pasting proxy rules.

System Configuration

The package provides a default configuration in /usr/share/local/domainlink/config.toml. Modifying this is not recommended as updates may override any changes, instead make a copy at /etc/domainlink/config.toml. Any changes there will persist updates and supersede the default config. The System Config only contains the settings for listen addresses and ports.

User Configuration

DomainLink currently expects redirect files to be placed in any home directory, specifically /home/{user}/.config/domainlink/domains.toml or /root/.config/domainlink/domains.toml. Redirects are configured in an array, below is an example config.

[[domain_configs]]
domains = ["sub.domain.tld", "sub2.domain.tld"]
target = "https://sub.domain.tld/query"

By default, DomainLink does not create any redirect rules, you will have to create these yourself.