Change HTTP port for onlyoffice container.

This commit is contained in:
yohan 2024-11-06 07:38:46 +01:00
parent 17d3064b78
commit 98fb64a30b
2 changed files with 15 additions and 3 deletions

View 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;
}

View File

@ -47,12 +47,15 @@
- name: Deploy custom files
ansible.builtin.copy:
src: "{{ item }}"
src: "{{ item.name }}"
dest: "/usr/local/docker-mounted-files/docker-nextcloud-stack/{{ item }}"
mode: '0777'
mode: "{{ item.mode }}"
become: true
with_items:
- run-document-server.sh
- name: run-document-server.sh
mode: '0755'
- name: ds.conf
mode: '0744'
- name: Create onlyoffice container
containers.podman.podman_container:
@ -66,6 +69,7 @@
- /mnt/volumes/onlyoffice_data/data:/var/www/onlyoffice/Data: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/ds.conf:/etc/nginx/conf.d/ds.conf:z
network:
- host
generate_systemd: