fix: Fix template and rights.

This commit is contained in:
Laur Ivan 2022-12-11 02:18:36 +01:00
parent 19a992cefe
commit 83d3e45c05
4 changed files with 22 additions and 9 deletions

View File

@ -7,7 +7,8 @@ outline_utils_secret: 'changeme'
outline_deployment: ''
outline_port: 3000
outline_url: "http://localhost:{{ outline_port }}"
outline_public_port: "{{ outline_port }}"
outline_url: "http://localhost:{{ outline_public_port }}"
outline_force_https: "false"
outline_enable_updates: "false"
outline_cdn_url:

View File

@ -23,9 +23,19 @@
with_items:
- "{{ outline_setup_path | expanduser | realpath }}"
- "{{ outline_volume_redis | expanduser | realpath }}"
- "{{ outline_volume_db | expanduser | realpath }}"
- "{{ outline_volume_s3 | expanduser | realpath }}"
tags:
- configuration
become: true
- name: Set up the database directory.
ansible.builtin.file:
state: directory
path: "{{ item }}"
mode: "0755"
owner: 70
with_items:
- "{{ outline_volume_db | expanduser | realpath }}"
tags:
- configuration
become: true

View File

@ -58,8 +58,8 @@ services:
outline:
image: outlinewiki/outline:latest
command: sh -c "yarn start"
# command: sh -c "yarn sequelize:migrate --env production-ssl-disabled && yarn start"
#command: sh -c "yarn start"
command: sh -c "yarn sequelize:migrate --env production-ssl-disabled && yarn start"
env_file:
- "{{ outline_setup_path | expanduser | realpath }}/env.outline.conf"
- "{{ outline_setup_path | expanduser | realpath }}/env.oidc.conf"
@ -79,4 +79,3 @@ services:
networks:
outline: {}

View File

@ -8,13 +8,19 @@ UTILS_SECRET={{ outline_utils_secret }}
DEPLOYMENT={{ outline_deployment }}
{% if outline_db_schema == 'postgres' and outline_db_host == 'postgres' %}
DATABASE_URL=postgres://{{ outline_db_user }}:{{ outline_db_password }}@postgres:5432/{{ outline_db }}
{% else %}
DATABASE_URL={{ outline_db_schema }}://{{ outline_db_user }}:{{ outline_db_password }}@{{outline_db_host}}:{{ outline_db_port }}/{{ outline_db }}
{% endif %}
DATABASE_URL_TEST={{ outline_db_schema }}://{{ outline_db_user }}:{{ outline_db_password }}@{{outline_db_host}}:{{ outline_db_port }}/{{ outline_db }}_test
REDIS_URL=redis://redis:6379
# Must point to the publicly accessible URL for the installation
URL={{ outline_url }}
PORT=3000
{% if outline_public_port %}
PORT={{ outline_public_port }}
{% endif %}
# Optional. If using a Cloudfront distribution or similar the origin server
# should be set to the same as URL.
@ -89,6 +95,3 @@ DEFAULT_LANGUAGE={{ outline_language }}
{% if outline_db_ssl %}
PGSSLMODE={{ outline_db_ssl }}
{% endif %}