Skip to content

Commit

Permalink
chore: move bin/inx-chronicle into src/ (#572)
Browse files Browse the repository at this point in the history
* chore: move `bin/inx-chronicle` into `src/`

* Fmt

* Fix config file test case
  • Loading branch information
grtlr authored Aug 24, 2022
1 parent 146d5b8 commit f278282
Show file tree
Hide file tree
Showing 37 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ path = "src/lib.rs"

[[bin]]
name = "inx-chronicle"
path = "bin/inx-chronicle/src/main.rs"
path = "src/bin/inx-chronicle/main.rs"

[dependencies]

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Then you should be able to connect to INX on `http://localhost:9029`

## JWT Authentication

Usage of the Chronicle API can be protected using [JWT](https://jwt.io/), by setting the following configuration settings under the `api` table in [config.toml](bin/inx-chronicle/config.template.toml).
Usage of the Chronicle API can be protected using [JWT](https://jwt.io/), by setting the following configuration settings under the `api` table in [config.toml](config.template.toml).

- `password_hash` - The [argon2i](https://argon2.online/) hash of your chosen password.
- `password_salt` - The salt used to hash the above password.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
- "--config"
- "config.toml"
volumes:
- ../bin/inx-chronicle/config.template.toml:/app/config.toml:ro
- ../config.template.toml:/app/config.toml:ro

hornet:
image: iotaledger/hornet:2.0.0-beta.6
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ mod test {

#[test]
fn config_file_conformity() -> Result<(), ConfigError> {
let _ = ChronicleConfig::from_file(concat!(
env!("CARGO_MANIFEST_DIR"),
"/bin/inx-chronicle/config.template.toml"
))?;
let _ = ChronicleConfig::from_file(concat!(env!("CARGO_MANIFEST_DIR"), "/config.template.toml"))?;

Ok(())
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f278282

Please sign in to comment.