Skip to content

Commit

Permalink
Merge branch 'main' into feature/expand-cors-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
bensofficial authored Nov 8, 2024
2 parents 50c06ea + da5c5a0 commit 2acb8c2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 44 deletions.
1 change: 0 additions & 1 deletion roles/artemis/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ artemis_plagiarism_checks_plagiarism_results_limit: 100

artemis_ssh_key_path: /opt/keys
artemis_ssh_key_name: "artemis_ssh_key"
artemis_ssh_priv_key_value: #FIXME
artemis_ssh_key_password:

artemis_force_restart: false # Will restart the artemis service on all nodes (unless artemis_force_no_restart) is set
Expand Down
20 changes: 0 additions & 20 deletions roles/artemis/tasks/artemis_configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,26 +65,6 @@
file:
path: "{{ artemis_ssh_key_path }}"
state: directory
mode: '0775'
when: artemis_ssh_priv_key_value is not none and artemis_ssh_key_path is not none and artemis_ssh_key_path != ""

- name: Copy ssh key
become: true
copy:
content: "{{ artemis_ssh_priv_key_value }}"
dest: "{{ artemis_ssh_key_path }}/{{ artemis_ssh_key_name }}"
register: ssh_key
notify: restart artemis
when: artemis_ssh_priv_key_value is not none and artemis_ssh_key_path is not none and artemis_ssh_key_path != ""

- name: Set permissions for artemis ssh key directory
become: true
file:
path: "{{ artemis_ssh_key_path }}"
state: directory
recurse: yes
owner: "{{ artemis_user_name }}"
group: "{{ artemis_user_group }}"
when: artemis_ssh_priv_key_value is not none and artemis_ssh_key_path is not none and artemis_ssh_key_path != ""

- name: Create artemis data-export directory
Expand Down
21 changes: 0 additions & 21 deletions roles/artemis/tasks/docker_deploy_artemis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,27 +109,6 @@
file:
path: "{{ artemis_ssh_key_path }}"
state: directory
mode: '0775'
when: artemis_ssh_key_path is not none and artemis_ssh_key_path != ""

- name: Copy ssh key
become: true
copy:
content: "{{ artemis_ssh_priv_key_value }}"
dest: "{{ artemis_ssh_key_path }}/{{ artemis_ssh_key_name }}"
register: ssh_key
notify: restart docker artemis
when: artemis_ssh_key_path is not none and artemis_ssh_key_path != ""

- name: Set permissions for artemis ssh key directory
become: true
file:
path: "{{ artemis_ssh_key_path }}"
state: directory
recurse: yes
owner: "{{ artemis_user_name }}"
group: "{{ artemis_user_group }}"
mode: '0770'
when: artemis_ssh_key_path is not none and artemis_ssh_key_path != ""

- name: Create artemis data-export directory
Expand Down
4 changes: 2 additions & 2 deletions roles/proxy/templates/nginx_proxy.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ server {

{% for server in servers %}
server {
listen 443 ssl{% if server.default_server %} default_server{% endif %};
listen 443 ssl{% if server.default_server is defined and server.default_server is not none and server.default_server %} default_server{% endif %};
listen 443 quic{% if loop.index == 1 %} reuseport{% endif %};
listen [::]:443 ssl{% if server.default_server %} default_server{% endif %};
listen [::]:443 ssl{% if server.default_server is defined and server.default_server is not none and server.default_server %} default_server{% endif %};
listen [::]:443 quic{% if loop.index == 1 %} reuseport{% endif %};
http2 on;
http3 on;
Expand Down

0 comments on commit 2acb8c2

Please sign in to comment.