This commit is contained in:
despiegk 2025-05-08 06:26:11 +03:00
parent c25cf96015
commit d98a2ac802
3 changed files with 23 additions and 2 deletions

View File

@ -23,8 +23,11 @@ futures-util = "0.3"
num_cpus = "1.15"
bcrypt = "0.14"
uuid = { version = "1.3", features = ["v4", "serde"] }
oauth2 = "4.3"
reqwest = { version = "0.11", features = ["json"] }
oauth2 = { version = "4.3", optional = true }
reqwest = { version = "0.11", features = ["json"], optional = true }
[features]
gitea = ["oauth2", "reqwest"]
[dev-dependencies]
actix-rt = "2.8"

8
start.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
# Get the directory of the script and change to it
cd "$(dirname "$0")"
export SECRET_KEY=1234
cargo run

10
start_with_gitea.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# Get the directory of the script and change to it
cd "$(dirname "$0")"
export GITEA_CLIENT_ID="your_client_id"
export GITEA_CLIENT_SECRET="your_client_secret"
export GITEA_INSTANCE_URL="https://gitea.example.com"
export APP_URL="http://localhost:9999"
cargo run --features gitea