Skip to content

Commit

Permalink
Update config in Realworld. (LukeMathWalker#235)
Browse files Browse the repository at this point in the history
We can rely on the defaults rather than specifying them explicitly.
  • Loading branch information
LukeMathWalker authored Apr 5, 2024
1 parent 1f4e577 commit 883aed7
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 32 deletions.
38 changes: 19 additions & 19 deletions examples/realworld/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/realworld/app/src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use sqlx::postgres::{PgConnectOptions, PgSslMode};
pub struct ApplicationConfig {
pub database: DatabaseConfig,
pub auth: AuthConfig,
#[serde(default)]
pub cookie: ProcessorConfig,
}

Expand Down
6 changes: 1 addition & 5 deletions examples/realworld/server/configuration/base.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
server:
port: 8000
app:
cookie:
percent_encode: true
crypto_rules: [ ]
port: 8000
16 changes: 8 additions & 8 deletions libs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 883aed7

Please sign in to comment.