-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
[build] | ||
rustdocflags = "-D warnings" | ||
|
||
[profile.dev.package."*"] | ||
opt-level = 3 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
# Editor-agnostic settings. | ||
# | ||
# See <https://editorconfig.org/> for more information. | ||
# https://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = tab | ||
|
||
[*.{nix,toml,yml,md}] | ||
[*.{md,toml,yml,nix}] | ||
indent_style = space | ||
indent_size = 2 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# These are overrides necessary for docker. | ||
# If the API is going to run in a container, it needs to reference the other container by its name | ||
# rather than IP and also use the default database port. | ||
# | ||
# These will be added to the database container automatically and you should not need to change | ||
# them. | ||
DATABASE_PORT=3306 | ||
DATABASE_URL=mysql://kz:csgo-kz-is-dead-boys@cs2kz-database:3306/cs2kz |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
API_IP=127.0.0.1 | ||
API_PORT=42069 | ||
API_PUBLIC_URL=http://127.0.0.1:42069 | ||
# Database | ||
DATABASE_PORT=8070 | ||
|
||
DATABASE_URL=mysql://kz:csgo-kz-is-dead-boys@127.0.0.1:8070/cs2kz-api | ||
# Note: we cannot interpolate `$DATABASE_PORT` here because Rust will not recursively evaluate | ||
# nested environment variables when loading them with `std::env::var`. | ||
DATABASE_URL=mysql://kz:csgo-kz-is-dead-boys@127.0.0.1:8070/cs2kz | ||
|
||
# For docker | ||
# DATABASE_URL=mysql://kz:csgo-kz-is-dead-boys@cs2kz-database:3306/cs2kz-api | ||
# API | ||
RUST_LOG=cs2kz_api=trace,sqlx=debug,axum=trace,warn | ||
KZ_API_IP=127.0.0.1 | ||
KZ_API_PORT=42069 | ||
KZ_API_URL=https://cs2.kz | ||
KZ_API_JWT_SECRET=Y3Nnby1rei1pcy1kZWFkLWJveXMK |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.direnv | ||
target | ||
database/volumes/** | ||
database/volumes | ||
.direnv | ||
.env |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.