mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 00:12:05 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			248 lines
		
	
	
		
			7.6 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			248 lines
		
	
	
		
			7.6 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| --- a/pict-rs.toml
 | |
| +++ b/pict-rs.toml
 | |
| @@ -3,7 +3,7 @@
 | |
|  ## Optional: pict-rs binding address
 | |
|  # environment variable: PICTRS__SERVER__ADDRESS
 | |
|  # default: 0.0.0.0:8080
 | |
| -address = '0.0.0.0:8080'
 | |
| +address = '127.0.0.1:8080'
 | |
|  
 | |
|  ## Optional: whether to reject any operations that would change the state of pict-rs.
 | |
|  # environment variable: PICTRS__SERVER__READ_ONLY
 | |
| @@ -42,14 +42,14 @@
 | |
|  # default: empty
 | |
|  #
 | |
|  # Note that both certificate and private_key must be set to enable TLS
 | |
| -certificate = "/path/to/server.crt"
 | |
| +#certificate = "/path/to/server.crt"
 | |
|  
 | |
|  ## Optional: path to server key to enable TLS
 | |
|  # environment variable: PICTRS__SERVER__PRIVATE_KEY
 | |
|  # default: empty
 | |
|  #
 | |
|  # Note that both private_key and certificate must be set to enable TLS
 | |
| -private_key = "/path/to/server.key"
 | |
| +#private_key = "/path/to/server.key"
 | |
|  
 | |
|  ## Client configuration
 | |
|  [client]
 | |
| @@ -95,7 +95,7 @@
 | |
|  
 | |
|  
 | |
|  ## Console configuration
 | |
| -[tracing.console]
 | |
| +#[tracing.console]
 | |
|  ## Optional: console address
 | |
|  # environment variable: PICTRS__TRACING__CONSOLE__ADDRESS
 | |
|  # default: empty
 | |
| @@ -124,7 +124,7 @@
 | |
|  # ```
 | |
|  # $ tokio-console http://localhost:6669
 | |
|  # ```
 | |
| -address = '0.0.0.0:6669'
 | |
| +#address = '0.0.0.0:6669'
 | |
|  
 | |
|  ## Optional: console buffer capacity
 | |
|  # environment variable: PICTRS__TRACING__CONSOLE__BUFFER_CAPACITY
 | |
| @@ -132,11 +132,11 @@
 | |
|  #
 | |
|  # This is the number of _events_ to buffer, not the number of bytes. In reality, the amount of
 | |
|  # RAM used will be significatnly larger (in bytes) than the buffer capacity (in events)
 | |
| -buffer_capacity = 102400
 | |
| +#buffer_capacity = 102400
 | |
|  
 | |
|  
 | |
|  ## OpenTelemetry configuration
 | |
| -[tracing.opentelemetry]
 | |
| +#[tracing.opentelemetry]
 | |
|  ## Optional: url for exporting otlp traces
 | |
|  # environment variable: PICTRS__TRACING__OPENTELEMETRY__URL
 | |
|  # default: empty
 | |
| @@ -145,36 +145,36 @@
 | |
|  # When set, pict-rs will export OpenTelemetry traces to the provided URL. If the URL is
 | |
|  # inaccessible, this can cause performance degredation in pict-rs, so it is best left unset unless
 | |
|  # you have an OpenTelemetry collector
 | |
| -url = 'http://localhost:4317/'
 | |
| +#url = 'http://localhost:4317/'
 | |
|  
 | |
|  ## Optional: name to relate OpenTelemetry traces
 | |
|  # environment variable: PICTRS__TRACING__OPENTELEMETRY__SERVICE_NAME
 | |
|  # default: pict-rs
 | |
| -service_name = 'pict-rs'
 | |
| +#service_name = 'pict-rs'
 | |
|  
 | |
|  ## Optional: trace level to export
 | |
|  # environment variable: PICTRS__TRACING__OPENTELEMETRY__TARGETS
 | |
|  # default: info
 | |
|  #
 | |
|  # Follows the same format as RUST_LOG
 | |
| -targets = 'info'
 | |
| +#targets = 'info'
 | |
|  
 | |
| -[metrics]
 | |
| +#[metrics]
 | |
|  ## Optional: enable a prometheus scrape endpoint for pict-rs
 | |
|  # environment variable: PICTRS__METRICS__PROMETHEUS_ADDRESS
 | |
|  # default: empty
 | |
|  #
 | |
|  # Setting this value enables pointing prometheus at pict-rs to receive metrics. It can also be
 | |
|  # queried with curl.
 | |
| -prometheus_address = "0.0.0.0:9000"
 | |
| +#prometheus_address = "0.0.0.0:9000"
 | |
|  
 | |
|  
 | |
|  ## Configuration for migrating from pict-rs 0.4
 | |
| -[old_repo]
 | |
| +#[old_repo]
 | |
|  ## Optional: path to sled repository
 | |
|  # environment variable: PICTRS__OLD_REPO__PATH
 | |
|  # default: /mnt/sled-repo
 | |
| -path = '/mnt/sled-repo'
 | |
| +#path = '/mnt/sled-repo'
 | |
|  
 | |
|  
 | |
|  ## Media Processing Configuration
 | |
| @@ -613,7 +613,7 @@
 | |
|  ## Optional: path to sled repository
 | |
|  # environment variable: PICTRS__REPO__PATH
 | |
|  # default: /mnt/sled-repo
 | |
| -path = '/mnt/sled-repo'
 | |
| +path = '/var/lib/pict-rs/sled-repo'
 | |
|  
 | |
|  ## Optional: in-memory cache capacity for sled data (in bytes)
 | |
|  # environment variable: PICTRS__REPO__CACHE_CAPACITY
 | |
| @@ -626,32 +626,32 @@
 | |
|  #
 | |
|  # Used in combination with the /internal/export endpoint to dump the current sled database into a
 | |
|  # new file. This can be helpful for backing up a running pict-rs server.
 | |
| -export_path = "/mnt/exports"
 | |
| +export_path = "/var/lib/pict-rs/exports"
 | |
|  
 | |
|  
 | |
|  ## Postgres repo configuration example
 | |
| -[repo]
 | |
| +#[repo]
 | |
|  ## Optional: database backend to use
 | |
|  # environment variable: PICTRS__REPO__TYPE
 | |
|  # default: sled
 | |
|  #
 | |
|  # available options: sled, postgres
 | |
| -type = 'postgres'
 | |
| +#type = 'postgres'
 | |
|  
 | |
|  ## Required: URL to postgres database
 | |
|  # environment variable: PICTRS__REPO__URL
 | |
|  # default: empty
 | |
| -url = 'postgres://user:password@host:5432/db'
 | |
| +#url = 'postgres://user:password@host:5432/db'
 | |
|  
 | |
|  ## Optional: Whether to use TLS when connecting to postgres
 | |
|  # environment variable: PICTRS__REPO__USE_TLS
 | |
|  # default: false
 | |
| -use_tls = false
 | |
| +#use_tls = false
 | |
|  
 | |
|  ## Optional: The CA Certificate used to verify the postgres TLS certificate
 | |
|  # environment variable: PICTRS__REPO__CERTIFICATE_FILE
 | |
|  # default: empty
 | |
| -certificate_file = '/etc/ca-certificate.crt'
 | |
| +#certificate_file = '/etc/ca-certificate.crt'
 | |
|  
 | |
|  
 | |
|  ### Media storage configuration
 | |
| @@ -668,17 +668,17 @@
 | |
|  ## Optional: path to uploaded media
 | |
|  # environment variable: PICTRS__STORE__PATH
 | |
|  # default: /mnt/files
 | |
| -path = '/mnt/files'
 | |
| +path = '/var/lib/pict-rs/files'
 | |
|  
 | |
|  
 | |
|  ## Object media storage example
 | |
| -[store]
 | |
| +#[store]
 | |
|  ## Optional: type of media storage to use
 | |
|  # environment variable: PICTRS__STORE__TYPE
 | |
|  # default: filesystem
 | |
|  #
 | |
|  # available options: filesystem, object_storage
 | |
| -type = 'object_storage'
 | |
| +#type = 'object_storage'
 | |
|  
 | |
|  ## Required: endpoint at which the object storage exists
 | |
|  # environment variable: PICTRS__STORE__ENDPOINT
 | |
| @@ -687,7 +687,7 @@
 | |
|  # examples:
 | |
|  # - `http://localhost:9000` # minio
 | |
|  # - `https://s3.dualstack.eu-west-1.amazonaws.com` # s3
 | |
| -endpoint = 'http://minio:9000'
 | |
| +#endpoint = 'http://minio:9000'
 | |
|  
 | |
|  ## Optional: How to format object storage requests
 | |
|  # environment variable: PICTRS__STORE__USE_PATH_STYLE
 | |
| @@ -697,34 +697,34 @@
 | |
|  # When false, objects will be fetched from http{s}://{bucket_name}.{endpoint}:{port}/{object}
 | |
|  #
 | |
|  # Set to true when using minio
 | |
| -use_path_style = false
 | |
| +#use_path_style = false
 | |
|  
 | |
|  ## Required: object storage bucket name
 | |
|  # environment variable: PICTRS__STORE__BUCKET_NAME
 | |
|  # default: empty
 | |
| -bucket_name = 'pict-rs'
 | |
| +#bucket_name = 'pict-rs'
 | |
|  
 | |
|  ## Required: object storage region
 | |
|  # environment variable: PICTRS__STORE__REGION
 | |
|  # default: empty
 | |
|  #
 | |
|  # When using minio, this can be set to `minio`
 | |
| -region = 'minio'
 | |
| +#region = 'minio'
 | |
|  
 | |
|  ## Required: object storage access key
 | |
|  # environment variable: PICTRS__STORE__ACCESS_KEY
 | |
|  # default: empty
 | |
| -access_key = 'ACCESS_KEY'
 | |
| +#access_key = 'ACCESS_KEY'
 | |
|  
 | |
|  ## Required: object storage secret key
 | |
|  # environment variable: PICTRS__STORE__SECRET_KEY
 | |
|  # default: empty
 | |
| -secret_key = 'SECRET_KEY'
 | |
| +#secret_key = 'SECRET_KEY'
 | |
|  
 | |
|  ## Optional: object storage session token
 | |
|  # environment variable: PICTRS__STORE__SESSION_TOKEN
 | |
|  # default: empty
 | |
| -session_token = 'SESSION_TOKEN'
 | |
| +#session_token = 'SESSION_TOKEN'
 | |
|  
 | |
|  ## Optional: set how long object storage signatures are valid for (in seconds)
 | |
|  # environment variable: PICTRS__STORE__SIGNATURE_EXPIRATION
 | |
| @@ -732,7 +732,7 @@
 | |
|  #
 | |
|  # This can be useful if your object storage might take a while to process requests. It should not be
 | |
|  # increased more than needed to prevent replay attacks.
 | |
| -signature_expiration = 15
 | |
| +#signature_expiration = 15
 | |
|  
 | |
|  ## Optional: set how long pict-rs will wait (in seconds) for a response from object storage
 | |
|  # environment variable: PICTRS__STORE__CLIENT_TIMEOUT
 | |
| @@ -740,7 +740,7 @@
 | |
|  #
 | |
|  # This value is the total wait time, and not additional wait time on top of the
 | |
|  # signature_expiration.
 | |
| -client_timeout = 30
 | |
| +#client_timeout = 30
 | |
|  
 | |
|  ## Optional: URL to a CDN at which pict-rs files are available for web consumption
 | |
|  # environment variable: PICTRS__STORE__PUBLIC_ENDPOINT
 | |
| @@ -753,4 +753,4 @@
 | |
|  # Note that in order for clients to fetch media from this URL directly, any server between the
 | |
|  # client and pict-rs must not be configured to follow redirects, or else that server will fetch from
 | |
|  # this public URL and serve the file itself.
 | |
| -public_endpoint = "https://pict-rs.some.cdn.example.com/subpath/"
 | |
| +#public_endpoint = "https://pict-rs.some.cdn.example.com/subpath/"
 |