Skip to content

Commit

Permalink
⬆️ Update claper env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
anarion80 committed Apr 30, 2024
1 parent a4cc737 commit 96eb30f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 6 additions & 2 deletions roles/claper/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ claper_db_user: "claper"
claper_db_name: "claper"

# environment variables
claper_endpoint_host: "claper.{{ ansible_nas_domain }}"
claper_endpoint_port: "80"
claper_base_url: "https://claper.{{ ansible_nas_domain }}"
claper_enable_mailbox_route: "false"
claper_mailbox_user: "admin"
claper_mailbox_password: "admin"
claper_mail_transport: "local"
claper_mail_from: "claper@{{ ansible_nas_domain }}"
claper_mail_from_name: "Claper"
Expand All @@ -36,9 +38,11 @@ claper_smtp_tls: "always"
claper_smtp_auth: "always"
claper_smtp_ssl: "true"
claper_presentation_storage: "local"
claper_presentation_storage_dir: "/app/uploads"
claper_aws_access_key_id: ""
claper_aws_secret_access_key: ""
claper_aws_s3_bucket: ""
claper_aws_s3_region: ""
claper_secret_key_base: 0LZiQBLw4WvqPlz4cz8RsHJlxNiSqM9B48y4ChyJ5v1oA0L/TPIqRjQNdPZN3iEG
claper_account_creation: "true"
claper_gs_jpg_resolution: "300x300"
9 changes: 7 additions & 2 deletions roles/claper/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@
tty: true
volumes:
- "{{ claper_data_directory }}/data:/data:ro"
- "{{ claper_data_directory }}/uploads:/app/uploads:rw"
ports:
- "{{ claper_port }}:4000"
networks:
- name: "{{ claper_network_name }}"
env:
DATABASE_URL: postgres://{{ claper_db_user }}:{{ claper_db_pass }}@{{ claper_db_container_name }}:5432/{{ claper_db_name }}
BASE_URL: "{{ claper_base_url }}"
SECRET_KEY_BASE: "{{ claper_secret_key_base }}"
MAIL_TRANSPORT: "{{ claper_mail_transport }}"
MAIL_FROM: "{{ claper_mail_from }}"
Expand All @@ -61,14 +63,17 @@
SMTP_AUTH: "{{ claper_smtp_auth }}"
SMTP_SSL: "{{ claper_smtp_ssl }}"
PRESENTATION_STORAGE: "{{ claper_presentation_storage }}"
PRESENTATION_STORAGE_DIR: "{{ claper_presentation_storage_dir }}"
AWS_ACCESS_KEY_ID: "{{ claper_aws_access_key_id }}"
AWS_SECRET_ACCESS_KEY: "{{ claper_aws_secret_access_key }}"
AWS_S3_BUCKET: "{{ claper_aws_s3_bucket }}"
AWS_S3_REGION: "{{ claper_aws_s3_region }}"
ENDPOINT_HOST: "{{ claper_endpoint_host }}"
ENDPOINT_PORT: "{{ claper_endpoint_port }}"
ENABLE_MAILBOX_ROUTE: "{{ claper_enable_mailbox_route }}"
MAILBOX_USER: "{{ claper_mailbox_user }}"
MAILBOX_PASSWORD: "{{ claper_mailbox_password }}"
ENABLE_ACCOUNT_CREATION: "{{ claper_account_creation }}"
PORT: "{{ claper_port }}"
GS_JPG_RESOLUTION: "{{ claper_gs_jpg_resolution }}"
restart_policy: unless-stopped
memory: "{{ claper_memory }}"
labels:
Expand Down

0 comments on commit 96eb30f

Please sign in to comment.