Change HTTP port for onlyoffice container.
This commit is contained in:
parent
17d3064b78
commit
98fb64a30b
8
roles/role_deploy_onlyoffice/files/ds.conf
Normal file
8
roles/role_deploy_onlyoffice/files/ds.conf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
include /etc/nginx/includes/http-common.conf;
|
||||||
|
server {
|
||||||
|
listen 0.0.0.0:3004;
|
||||||
|
listen [::]:3004 default_server;
|
||||||
|
server_tokens off;
|
||||||
|
|
||||||
|
include /etc/nginx/includes/ds-*.conf;
|
||||||
|
}
|
@ -47,12 +47,15 @@
|
|||||||
|
|
||||||
- name: Deploy custom files
|
- name: Deploy custom files
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item.name }}"
|
||||||
dest: "/usr/local/docker-mounted-files/docker-nextcloud-stack/{{ item }}"
|
dest: "/usr/local/docker-mounted-files/docker-nextcloud-stack/{{ item }}"
|
||||||
mode: '0777'
|
mode: "{{ item.mode }}"
|
||||||
become: true
|
become: true
|
||||||
with_items:
|
with_items:
|
||||||
- run-document-server.sh
|
- name: run-document-server.sh
|
||||||
|
mode: '0755'
|
||||||
|
- name: ds.conf
|
||||||
|
mode: '0744'
|
||||||
|
|
||||||
- name: Create onlyoffice container
|
- name: Create onlyoffice container
|
||||||
containers.podman.podman_container:
|
containers.podman.podman_container:
|
||||||
@ -66,6 +69,7 @@
|
|||||||
- /mnt/volumes/onlyoffice_data/data:/var/www/onlyoffice/Data:Z
|
- /mnt/volumes/onlyoffice_data/data:/var/www/onlyoffice/Data:Z
|
||||||
- /mnt/volumes/onlyoffice_log/data:/var/log/onlyoffice:Z
|
- /mnt/volumes/onlyoffice_log/data:/var/log/onlyoffice:Z
|
||||||
- /usr/local/docker-mounted-files/docker-nextcloud-stack/run-document-server.sh:/app/ds/run-document-server.sh:z
|
- /usr/local/docker-mounted-files/docker-nextcloud-stack/run-document-server.sh:/app/ds/run-document-server.sh:z
|
||||||
|
- /usr/local/docker-mounted-files/docker-nextcloud-stack/ds.conf:/etc/nginx/conf.d/ds.conf:z
|
||||||
network:
|
network:
|
||||||
- host
|
- host
|
||||||
generate_systemd:
|
generate_systemd:
|
||||||
|
Loading…
Reference in New Issue
Block a user