Compare commits
7 commits
Author | SHA1 | Date | |
---|---|---|---|
13e1d73029 | |||
a6c4e25702 | |||
fec128243c | |||
ed4ca5899a | |||
7cb109018d | |||
c2bf7cc4ae | |||
add30dcfdd |
5 changed files with 9 additions and 8 deletions
|
@ -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@v1
|
uses: actions/forgejo-release@v2
|
||||||
with:
|
with:
|
||||||
direction: upload
|
direction: upload
|
||||||
url: https://forgejo.neshweb.net
|
url: https://forgejo.neshweb.net
|
||||||
|
|
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -460,7 +460,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "domainlink"
|
name = "domainlink"
|
||||||
version = "1.0.1"
|
version = "1.0.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-web",
|
"actix-web",
|
||||||
"confy",
|
"confy",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
authors = ["Neshura"]
|
authors = ["Neshura"]
|
||||||
name = "domainlink"
|
name = "domainlink"
|
||||||
version = "1.0.1"
|
version = "1.0.3"
|
||||||
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"
|
||||||
|
|
|
@ -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/config.toml`.
|
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.
|
Redirects are configured in an array, below is an example config.
|
||||||
```toml
|
```toml
|
||||||
[[domain_configs]]
|
[[domain_configs]]
|
||||||
|
@ -18,4 +18,3 @@ 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.
|
|
|
@ -171,8 +171,10 @@ 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) => {
|
||||||
|
|
Loading…
Reference in a new issue