Skip to content

Misc changes to defaults #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Misc changes to defaults #1

wants to merge 2 commits into from

Conversation

dongresource
Copy link
Member

  • Listen for HTTP connections on port 8080 by default
  • Disable HTTPS by default
  • Disable rank endpoint placeholders by default
  • Change line endings in config.toml to Unix-style
  • Hoist built-in config default to top of main.rs
  • Send newline at the end of version endpoint text
  • Update .gitignore for cargo-vet

* Listen for HTTP connections on port 8080 by default
* Disable HTTPS by default
* Disable rank endpoint placeholders by default
* Change line endings in config.toml to Unix-style
* Hoist built-in config default to top of main.rs
* Send newline at the end of version endpoint text
* Update .gitignore for cargo-vet
@@ -51,7 +56,6 @@ impl Config {
struct AppState {
db: Arc<Mutex<Connection>>,
rng: Arc<SystemRandom>,
is_tls: bool,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would actually keep this (and the assertions) but maybe rename to something like is_secure to align with our discussion

env!("CARGO_PKG_VERSION"),
state.is_tls
state.is_using_app_tls()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See previous comment; this is supposed to indicate whether secure APIs are enabled, not whether app-terminated TLS is enabled

@yungcomputerchair yungcomputerchair force-pushed the main branch 2 times, most recently from 4751fbb to 15d9b51 Compare December 6, 2024 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants