...
This commit is contained in:
parent
c25cf96015
commit
d98a2ac802
@ -23,8 +23,11 @@ futures-util = "0.3"
|
|||||||
num_cpus = "1.15"
|
num_cpus = "1.15"
|
||||||
bcrypt = "0.14"
|
bcrypt = "0.14"
|
||||||
uuid = { version = "1.3", features = ["v4", "serde"] }
|
uuid = { version = "1.3", features = ["v4", "serde"] }
|
||||||
oauth2 = "4.3"
|
oauth2 = { version = "4.3", optional = true }
|
||||||
reqwest = { version = "0.11", features = ["json"] }
|
reqwest = { version = "0.11", features = ["json"], optional = true }
|
||||||
|
|
||||||
|
[features]
|
||||||
|
gitea = ["oauth2", "reqwest"]
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
actix-rt = "2.8"
|
actix-rt = "2.8"
|
||||||
|
8
start.sh
Normal file
8
start.sh
Normal 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
10
start_with_gitea.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user