feat(openstack): use env variables for base and auth URLs

This commit is contained in:
François Vantomme 2022-02-02 11:48:54 +01:00 committed by Pierre de La Morinerie
parent 2b563f55b4
commit 36f8a582ed
2 changed files with 4 additions and 3 deletions

View file

@ -28,8 +28,9 @@ BASIC_AUTH_ENABLED="disabled"
BASIC_AUTH_USERNAME=""
BASIC_AUTH_PASSWORD=""
# Object Storage for attachments
FOG_ENABLED="disabled"
# Object Storage for attachments. Used if STORAGE_TYPE is not "local"
STORAGE_TYPE="openstack"
FOG_OPENSTACK_AUTH_URL="https://auth.cloud.ovh.net"
FOG_OPENSTACK_API_KEY=""
FOG_OPENSTACK_USERNAME=""
FOG_OPENSTACK_URL=""

View file

@ -8,7 +8,7 @@ openstack:
service: OpenStack
container: "<%= ENV['FOG_ACTIVESTORAGE_DIRECTORY'] %>"
credentials:
openstack_auth_url: "https://auth.cloud.ovh.net"
openstack_auth_url: "<%= ENV['FOG_OPENSTACK_AUTH_URL'] %>"
openstack_api_key: "<%= ENV['FOG_OPENSTACK_API_KEY'] %>"
openstack_username: "<%= ENV['FOG_OPENSTACK_USERNAME'] %>"
openstack_region: "<%= ENV['FOG_OPENSTACK_REGION'] %>"