Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit df023bb

Browse files
Modify config.toml
1 parent 53a5ec7 commit df023bb

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

Makefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@ package: ## Package binary with zip
2222
git-cliff: ## Run git cliff
2323
git cliff --output CHANGELOG.md
2424

25-
run-with-autoreload: ## Run the API with autoreload. Run: $ cargo install cargo-watch systemfd
26-
systemfd --no-pid -s http::3000 -- cargo watch -w src -x run
27-
28-
create-iproxy-network: ## Create iproxy network
29-
podman network create iproxy
30-
3125
local-dev: ## Start local development
26+
podman rm -f mongo || true ;\
3227
podman run -itd --rm --name mongo -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=admin -e MONGO_INITDB_DATABASE=iproxy docker.io/mongo:latest
3328

29+
run-with-autoreload: local-dev ## Run the API with autoreload. Run: $ cargo install cargo-watch systemfd
30+
systemfd --no-pid -s http::3000 -- cargo watch -w src -x run
31+
3432
compose-up: ## Run podman-compose
3533
podman-compose -f compose.yml up -d
3634

config.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@ port = 8000
44
use_proxy = false
55

66
[logging]
7-
log_level = "debug" # trace, debug, info, warn or error. Defaults to info if not set
7+
log_level = "info" # trace, debug, info, warn or error. Defaults to info if not set
88
log_type = "text" # text or json. Defaults to text if not set
99

1010
[database]
11-
# For local testing
12-
endpoint = "mongodb://admin:mongodbpassword@127.0.0.1:27017/?maxPoolSize=20&w=majority"
13-
# With compose
14-
#endpoint = "mongodb://admin:changeme@mongodb:27017/?maxPoolSize=20&w=majority"
11+
endpoint = "mongodb://admin:changeme@mongodb:27017/?maxPoolSize=20&w=majority"
1512
db_name = "iproxy"
1613
collection_name = "ips"

init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
echo -e "Creating mongodb root password\n"
44
openssl rand -base64 48 | tr -dc 'a-zA-Z0-9' | head -c 48
55

6-
echo -e "Now change the password in config.toml and compose.yml\n"
6+
echo -e "\nNow change the password in config.toml and compose.yml\n"

0 commit comments

Comments
 (0)