memos
This commit is contained in:
parent
e6be6cea51
commit
b70d4bd0e0
3 changed files with 350 additions and 104 deletions
|
|
@ -1,18 +1,27 @@
|
|||
# General
|
||||
memos_data_dir: /var/lib/memos
|
||||
# Memos configuration
|
||||
memos_version: "0.25.3"
|
||||
memos_port: 5230
|
||||
memos_user: "memos"
|
||||
memos_data_dir: "/var/lib/memos"
|
||||
memos_config_dir: "/etc/memos"
|
||||
memos_bin_path: "/usr/local/bin/memos"
|
||||
memos_arch: "linux_amd64"
|
||||
memos_url: "https://github.com/usememos/memos/releases/download/v{{ memos_version }}/memos_v{{ memos_version }}_{{ memos_arch }}.tar.gz"
|
||||
|
||||
# (caddy_sites_dir and subdomain now in services_config.yml)
|
||||
# Tailscale for memos-box (used by vipy Caddy proxy)
|
||||
memos_tailscale_hostname: "memos-box"
|
||||
memos_tailscale_ip: "100.64.0.4"
|
||||
|
||||
# Remote access
|
||||
remote_host_name: "memos-box"
|
||||
remote_host: "{{ hostvars.get(remote_host_name, {}).get('ansible_host', remote_host_name) }}"
|
||||
remote_user: "{{ hostvars.get(remote_host_name, {}).get('ansible_user', 'counterweight') }}"
|
||||
remote_key_file: "{{ hostvars.get(remote_host_name, {}).get('ansible_ssh_private_key_file', '') }}"
|
||||
remote_port: "{{ hostvars.get(remote_host_name, {}).get('ansible_port', 22) }}"
|
||||
# (caddy_sites_dir and subdomain in services_config.yml)
|
||||
|
||||
# Remote access (for backup from lapy)
|
||||
backup_host_name: "memos_box_local"
|
||||
backup_host: "{{ hostvars.get(backup_host_name, {}).get('ansible_host', backup_host_name) }}"
|
||||
backup_user: "{{ hostvars.get(backup_host_name, {}).get('ansible_user', 'counterweight') }}"
|
||||
backup_key_file: "{{ hostvars.get(backup_host_name, {}).get('ansible_ssh_private_key_file', '') }}"
|
||||
backup_port: "{{ hostvars.get(backup_host_name, {}).get('ansible_port', 22) }}"
|
||||
|
||||
# Local backup
|
||||
local_backup_dir: "{{ lookup('env', 'HOME') }}/memos-backups"
|
||||
backup_script_path: "{{ lookup('env', 'HOME') }}/.local/bin/memos_backup.sh"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue