@@ -27,14 +27,17 @@ and store crate files in `/tmp/chartered`, configuration away from these default
2727
2828Using the recommended setup, S3 & PostgreSQL:
2929
30+ 
31+ #### ` chartered-web `  config 
32+ 
3033``` toml 
31- bind_address  = " 127.0.0.1:8080"   #  hint: use a different port for each service 
34+ bind_address  = " 127.0.0.1:8080" 
3235database_uri  = " postgres://user:password@localhost/chartered" 
33- 
34- #  the below configuration options should only be set for chartered-web
3536storage_uri   = " s3://s3-eu-west-1.amazonaws.com/my-cool-crate-store/" 
36- frontend_url  = " https://my.instance.chart.rs"   #  this is used for CORS
37-                                               #  if unset defaults to *
37+ frontend_base_uri  = " http://localhost:1234/" 
38+ 
39+ [auth .password ]
40+ enabled  = true 
3841
3942#  openid connect provider
4043[auth .gitlab ]
@@ -44,13 +47,17 @@ client_id = "[client-id]"
4447client_secret  = " [client-secret]" 
4548``` 
4649
47- Or, using the defaults of  ` chartered-web  `  as an example: 
50+ ####  ` chartered-git  `  config 
4851
4952``` toml 
50- bind_address  = " 127.0.0.1:8899" 
51- database_uri  = " sqlite://chartered.db" 
52- 
53- storage_uri   = " file:///tmp/chartered" 
53+ bind_address  = " 127.0.0.1:2233" 
54+ database_uri  = " postgres://user:password@localhost/chartered"   #  can also be `sqlite://`
55+ web_base_uri  = " http://localhost:8888/" 
56+ 
57+ [committer ]
58+ name  = " Chartered" 
59+ 60+ message  = " Updated crates!" 
5461``` 
5562
5663These configuration files can be passed into each binary using the ` -c `  CLI argument.
@@ -68,8 +75,8 @@ $ docker build https://github.com/w4/chartered.git#main \
6875$ docker build https://github.com/w4/chartered.git#main \ 
6976    --target chartered-git \ 
7077    -t chartered-git:master 
71- $ docker run -d chartered-web 
72- $ docker run -d chartered-git 
78+ $ docker -v $PWD/web-config.toml:/config.toml  run -d chartered-web --config /config.toml  
79+ $ docker -v $PWD/git-config.toml:/config.toml  run -d chartered-git --config /config.toml  
7380``` 
7481
7582[ gh-issue ] : https://github.com/w4/chartered/issues 
@@ -92,4 +99,6 @@ $ curl http://127.0.0.1:8080
9299< ! DOCTYPE html><html lang=" en"  ><head><meta charset=" UTF-8" > ...
93100``` 
94101
102+ Where ` BASE_URL `  points to the ` chartered-web `  instance.
103+ 
95104[ sws ] : https://github.com/joseluisq/static-web-server 
0 commit comments