-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update application configuration and add server settings
The application was updated to include a configuration loader and multiple server settings were added. The changes include the adjustment of authnz-rs v0.1.0 to v0.2.0 in Cargo.toml, environment variable exports in README.md, and usage of TLS and port specifications in src/main.rs. Additional library dependencies have also been included to support the changes.
- Loading branch information
1 parent
ca4b9b3
commit e84f938
Showing
4 changed files
with
114 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,6 @@ Cargo.lock | |
|
||
/target | ||
/.idea | ||
/apple-app-site-association.json | ||
/fullchain.pem | ||
/privkey.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
# https://doc.rust-lang.org/cargo/reference/manifest.html | ||
[package] | ||
name = "authnz-rs" | ||
version = "0.1.0" | ||
version = "0.2.0" | ||
edition = "2021" | ||
license = "BSD-2" | ||
|
||
# export RUSTFLAGS="-C target-cpu=native" | ||
# cargo build --release | ||
[profile.release] | ||
opt-level = 3 | ||
lto = true | ||
codegen-units = 1 | ||
# cargo flamegraph | ||
#debug = true | ||
|
||
[dependencies] | ||
tokio = { version = "1.38.0", features = ["rt", "rt-multi-thread", "macros"] } | ||
tokio = { version = "1.38.0", features = ["rt", "rt-multi-thread", "macros", "fs"] } | ||
tokio-native-tls = "0.3.1" | ||
axum = { version="0.7.5", features = ["http2", "tokio"] } | ||
axum-server = { version = "0.6.0", features = ["tls-rustls"] } | ||
webauthn-rs = { version="0.5.0", features = ["danger-allow-state-serialisation"] } | ||
tower = { version="0.4.13", features = ["full"] } | ||
tower-sessions = "0.12.2" | ||
thiserror = "1.0.62" | ||
log = "0.4.22" | ||
serde = { version = "1.0.204", features = ["derive"] } | ||
serde = { version = "1.0.204", features = ["derive"] } | ||
serde_json = "1.0.120" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
# authnz-rs | ||
Authentication and Entitlement WebAuthn and Smart Contract | ||
|
||
## Usage | ||
|
||
```env | ||
export PORT=8443 | ||
export TLS_CERT_PATH=/path/to/fullchain.pem | ||
export TLS_KEY_PATH=/path/to/privkey.pem | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters