2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 03:11:24 +00:00

bind to v6 in dev.toml, use local store & files

This commit is contained in:
asonix 2024-01-30 15:22:34 -06:00
parent 08472eabeb
commit 0c8d4588a6

View file

@ -1,5 +1,5 @@
[server] [server]
address = '0.0.0.0:8080' address = '[::]:8080'
api_key = 'api-key' api_key = 'api-key'
max_file_count = 10 max_file_count = 10
@ -11,15 +11,16 @@ format = 'normal'
targets = 'info' targets = 'info'
[tracing.console] [tracing.console]
address = '[::]:6969'
buffer_capacity = 102400 buffer_capacity = 102400
[tracing.opentelemetry] [tracing.opentelemetry]
url = 'http://127.0.0.1:4317' # url = 'http://127.0.0.1:4317'
service_name = 'pict-rs' service_name = 'pict-rs'
targets = 'info,pict_rs=debug' targets = 'info,pict_rs=debug'
[metrics] [metrics]
prometheus_address = "127.0.0.1:8070" prometheus_address = "[::]:9000"
[old_repo] [old_repo]
path = 'data/sled-repo-local' path = 'data/sled-repo-local'
@ -67,25 +68,25 @@ crf_1440 = 24
crf_2160 = 15 crf_2160 = 15
crf_max = 12 crf_max = 12
[repo]
type = 'postgres'
url = 'postgres://pictrs:1234@localhost:5432/pictrs'
use_tls = true
certificate_file = "./docker/object-storage/out/pictrsCA.crt"
# [repo] # [repo]
# type = 'sled' # type = 'postgres'
# path = 'data/sled-repo-local' # url = 'postgres://pictrs:1234@localhost:5432/pictrs'
# use_tls = true
# certificate_file = "./docker/object-storage/out/pictrsCA.crt"
# [store] [repo]
# type = 'filesystem' type = 'sled'
# path = 'data/files-local' path = 'data/sled-repo-local'
[store] [store]
type = 'object_storage' type = 'filesystem'
endpoint = 'http://localhost:3900' path = 'data/files-local'
use_path_style = true
bucket_name = 'pict-rs' # [store]
region = 'garage' # type = 'object_storage'
access_key = 'GK2182acf19c2bdb8b9c20e16e' # endpoint = 'http://localhost:3900'
secret_key = '0072105b8659adc02cce21d9135a88ebc279b3a35e170d23d31c63fb9307a168' # use_path_style = true
# bucket_name = 'pict-rs'
# region = 'garage'
# access_key = 'GK2182acf19c2bdb8b9c20e16e'
# secret_key = '0072105b8659adc02cce21d9135a88ebc279b3a35e170d23d31c63fb9307a168'