Compare commits

..

No commits in common. "main" and "1.0.1" have entirely different histories.
main ... 1.0.1

5 changed files with 8 additions and 9 deletions

View file

@ -137,7 +137,7 @@ jobs:
run: rm release_blobs/build.env run: rm release_blobs/build.env
- -
name: Release New Version name: Release New Version
uses: actions/forgejo-release@v2 uses: actions/forgejo-release@v1
with: with:
direction: upload direction: upload
url: https://forgejo.neshweb.net url: https://forgejo.neshweb.net

2
Cargo.lock generated
View file

@ -460,7 +460,7 @@ dependencies = [
[[package]] [[package]]
name = "domainlink" name = "domainlink"
version = "1.0.3" version = "1.0.1"
dependencies = [ dependencies = [
"actix-web", "actix-web",
"confy", "confy",

View file

@ -1,7 +1,7 @@
[package] [package]
authors = ["Neshura"] authors = ["Neshura"]
name = "domainlink" name = "domainlink"
version = "1.0.3" version = "1.0.1"
edition = "2021" edition = "2021"
description = "Lightweight tool for handling (sub-)domain to URL redirects instead of having to deal with copy and pasting proxy rules" description = "Lightweight tool for handling (sub-)domain to URL redirects instead of having to deal with copy and pasting proxy rules"
license = "GPL-3.0-or-later" license = "GPL-3.0-or-later"

View file

@ -10,7 +10,7 @@ Any changes there will persist updates and supersede the default config. The Sys
#### User Configuration #### 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`. DomainLink currently expects redirect files to be placed in any home directory, specifically `/home/{user}/.config/domainlink/config.toml`.
Redirects are configured in an array, below is an example config. Redirects are configured in an array, below is an example config.
```toml ```toml
[[domain_configs]] [[domain_configs]]
@ -18,3 +18,4 @@ domains = ["sub.domain.tld", "sub2.domain.tld"]
target = "https://sub.domain.tld/query" target = "https://sub.domain.tld/query"
``` ```
By default, DomainLink does not create any redirect rules, you will have to create these yourself. By default, DomainLink does not create any redirect rules, you will have to create these yourself.
Support for `/root/.config/domainlink/redirects` may come in the future.

View file

@ -171,10 +171,8 @@ impl Config {
} }
}; };
} }
else { let msg = format!("Using {config_path}/domains.toml");
let msg = format!("Using {config_path}/domains.toml"); info!(msg);
info!(msg);
}
(data, Some(config_path)) (data, Some(config_path))
}, },
Err(e) => { Err(e) => {