Skip to content

Commit

Permalink
n8n: fix permissions by mapping user
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Jan 3, 2025
1 parent b21917d commit cb9f2a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions roles/n8n/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ n8n_postgres_paths_location: "{{ server_appdata_path }}/{{ postgres_paths_folder

n8n_paths_folder: "{{ n8n_name }}"
n8n_paths_location: "{{ server_appdata_path }}/{{ n8n_paths_folder }}/app"
n8n_paths_permissions: "0700"
n8n_paths_folders_list:
- "{{ n8n_paths_location }}"

Expand Down Expand Up @@ -96,6 +97,7 @@ n8n_docker_envs_default:
N8N_DIAGNOSTICS_ENABLED: "false"
N8N_HIRING_BANNER_ENABLED: "false"
N8N_USER_MANAGEMENT_DISABLED: "true"
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS: "true"
n8n_docker_envs_custom: {}
n8n_docker_envs: "{{ n8n_docker_envs_default
| combine(n8n_docker_envs_custom) }}"
Expand Down Expand Up @@ -166,3 +168,6 @@ n8n_docker_state: started
n8n_depends_on: "{{ n8n_postgres_name }}"
n8n_depends_on_delay: "0"
n8n_depends_on_healthchecks: "false"

# User
n8n_docker_user: "{{ uid }}:{{ gid }}"
1 change: 0 additions & 1 deletion roles/n8n/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
vars:
var_prefix: "{{ n8n_name }}_postgres"


- name: PostgreSQL Role
ansible.builtin.include_role:
name: postgres
Expand Down

0 comments on commit cb9f2a5

Please sign in to comment.