miniflux db password

main
Alpha Chen 2 years ago
parent 3ba47f978c
commit 282c92fa68
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -35,9 +35,13 @@ end
task "vars.yml" do |t| task "vars.yml" do |t|
linode_volume = `terraform output -raw lotus_land_story_volume` linode_volume = `terraform output -raw lotus_land_story_volume`
miniflux_db_password = `op read op://Private/Miniflux/db_password`.strip
miniflux_password = `op read op://Private/Miniflux/password`.strip miniflux_password = `op read op://Private/Miniflux/password`.strip
File.write(t.name, YAML.dump({ File.write(t.name, YAML.dump({
domain: DOMAIN, linode_volume:, miniflux_password:, domain: DOMAIN,
linode_volume:,
miniflux_db_password:,
miniflux_password:,
}.transform_keys(&:to_s))) }.transform_keys(&:to_s)))
end end

@ -22,7 +22,7 @@
path: /mnt/lotus-land-story/postgresql path: /mnt/lotus-land-story/postgresql
state: directory state: directory
owner: postgres owner: postgres
mode: "0755" mode: "0700"
- name: Set data directory to volume - name: Set data directory to volume
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
dest: "/etc/postgresql/13/main/postgresql.conf" dest: "/etc/postgresql/13/main/postgresql.conf"
@ -115,7 +115,7 @@
community.postgresql.postgresql_user: community.postgresql.postgresql_user:
db: miniflux db: miniflux
name: miniflux name: miniflux
password: miniflux password: "{{ miniflux_db_password }}"
notify: Restart postgres notify: Restart postgres
- name: Grant miniflux access - name: Grant miniflux access
community.postgresql.postgresql_pg_hba: community.postgresql.postgresql_pg_hba:
@ -143,7 +143,7 @@
ports: ports:
- "8080:8080" - "8080:8080"
environment: environment:
- DATABASE_URL=postgres://miniflux:miniflux@host.docker.internal/miniflux - DATABASE_URL=postgres://miniflux:{{ miniflux_db_password }}@host.docker.internal/miniflux
- RUN_MIGRATIONS=1 - RUN_MIGRATIONS=1
- CREATE_ADMIN=1 - CREATE_ADMIN=1
- ADMIN_USERNAME=alpha - ADMIN_USERNAME=alpha

Loading…
Cancel
Save