69 lines
2.1 KiB
YAML
69 lines
2.1 KiB
YAML
---
|
|
foundryvtt_release_url: "{{ undef() }}"
|
|
foundryvtt_license_key: "{{ undef() }}"
|
|
foundryvtt_admin_key: "{{ undef() }}"
|
|
|
|
foundryvtt_s3_bucket: "{{ opentofu.scaleway_data.foundryvtt.name }}"
|
|
foundryvtt_s3_region: "{{ opentofu.scaleway_data.foundryvtt.region }}"
|
|
foundryvtt_s3_api_endpoint: "{{ opentofu.scaleway_data.foundryvtt.api_endpoint }}"
|
|
foundryvtt_s3_access_key: "{{ opentofu.scaleway_data.foundryvtt.access_key }}"
|
|
foundryvtt_s3_secret_key: "{{ opentofu.scaleway_data.foundryvtt.secret_key }}"
|
|
|
|
foundryvtt_aws_config:
|
|
buckets:
|
|
- "{{ foundryvtt_s3_bucket }}"
|
|
endpoint: "{{ foundryvtt_s3_api_endpoint }}"
|
|
region: "{{ foundryvtt_s3_region }}"
|
|
s3ForcePathStyle: true
|
|
s3BucketEndpoint: false
|
|
credentials:
|
|
accessKeyId: "{{ foundryvtt_s3_access_key }}"
|
|
secretAccessKey: "{{ foundryvtt_s3_secret_key }}"
|
|
|
|
foundryvtt_svc:
|
|
domain: "{{ all_services | service_get_domain(service_name) }}"
|
|
port: 30000
|
|
caddy_extra: |
|
|
handle_path /s3proxy/* {
|
|
rewrite * /{{ foundryvtt_aws_config.buckets[0] }}{uri}
|
|
reverse_proxy {{ foundryvtt_s3_api_endpoint }} {
|
|
header_up Host {http.reverse_proxy.upstream.hostport}
|
|
}
|
|
}
|
|
|
|
handle_path /{{ foundryvtt_s3_bucket }}.{{ foundryvtt_s3_api_endpoint | urlsplit('hostname') }}/{{ foundryvtt_s3_bucket }}/* {
|
|
rewrite * /{{ foundryvtt_aws_config.buckets[0] }}{uri}
|
|
reverse_proxy {{ foundryvtt_s3_api_endpoint }} {
|
|
header_up Host {http.reverse_proxy.upstream.hostport}
|
|
}
|
|
}
|
|
|
|
foundryvtt_env:
|
|
FOUNDRY_RELEASE_URL: "{{ foundryvtt_release_url | mandatory }}"
|
|
FOUNDRY_LICENSE_KEY: "{{ foundryvtt_license_key | mandatory }}"
|
|
FOUNDRY_ADMIN_KEY: "{{ foundryvtt_admin_key | mandatory }}"
|
|
|
|
FOUNDRY_COMPRESS_WEBSOCKET: true
|
|
FOUNDRY_MINIFY_STATIC_FILES: true
|
|
|
|
FOUNDRY_HOSTNAME: "{{ foundryvtt_svc.domain }}"
|
|
FOUNDRY_PROXY_SSL: true
|
|
FOUNDRY_PROXY_PORT: 443
|
|
|
|
FOUNDRY_LANGUAGE: de.lang-de
|
|
FOUNDRY_TELEMETRY: true
|
|
|
|
FOUNDRY_AWS_CONFIG: aws.json
|
|
|
|
TZ: "{{ timezone }}"
|
|
|
|
|
|
foundryvtt_compose:
|
|
watchtower: update
|
|
image: ghcr.io/felddy/foundryvtt:14
|
|
volumes:
|
|
- data:/data
|
|
- ./aws.json:/data/Config/aws.json
|
|
file:
|
|
volumes:
|
|
data:
|