Skip to content

Commit

Permalink
Refactor configuration file path in runtime.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitthi committed Sep 30, 2024
1 parent 7904a1b commit ec7ff0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,5 @@ $ cd easy-proxy
# Build the application
$ cargo build --release
# Run the application // EASY_PROXY_CONF is the environment variable to set the configuration file path
$ EASY_PROXY_CONF=.config/easy_proxy.yaml ./target/release/easy-proxy
$ EASY_PROXY_CONF=.config/easy-proxy.yaml ./target/release/easy-proxy
```
2 changes: 1 addition & 1 deletion src/config/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn initialize() -> Result<(), Errors> {
} else {
let mut conf_path = env::current_dir()
.map_err(|e| Errors::ConfigError(format!("Unable to get current directory: {}", e)))?;
conf_path.push("/etc/easy_proxy/conf.yaml");
conf_path.push("/etc/easy-proxy/conf.yaml");
conf_path
};

Expand Down

0 comments on commit ec7ff0e

Please sign in to comment.