mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
nginx - group proxypass to apache together
This commit is contained in:
parent
2833bb1654
commit
4047894ab6
17 changed files with 50 additions and 55 deletions
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
# nextcloud_install: False
|
||||
# nextcloud_enabled: False
|
||||
nextcloud_force_install: False
|
||||
|
||||
# nextcloud_allow_public_ips: False
|
||||
|
||||
|
|
|
|||
|
|
@ -33,17 +33,6 @@
|
|||
state: absent
|
||||
when: not nextcloud_enabled and is_redhat
|
||||
|
||||
- name: Enable the nginx proxying to apache
|
||||
template: src=nextcloud-nginx.conf dest=/etc/nginx/conf.d/nextcloud-nginx.conf
|
||||
when: nextcloud_enabled | bool
|
||||
|
||||
- name: Restart apache, so it picks up the new aliases
|
||||
service: name={{ apache_service }} state=restarted
|
||||
|
||||
- name: Restart nnginx
|
||||
service: name=nginx state=restarted
|
||||
when: nginx_enabled | bool
|
||||
|
||||
- name: Restart Apache, enabling/disabling http://box/nextcloud
|
||||
service:
|
||||
name: "{{ apache_service }}"
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
#set_fact:
|
||||
# nextcloud_force_install: True
|
||||
include_tasks: install.yml
|
||||
when: (nextcloud_install and not nextcloud_page.stat.exists) or nextcloud_force_install
|
||||
when: nextcloud_install and not nextcloud_page.stat.exists
|
||||
|
||||
# - debug:
|
||||
# var: nextcloud_force_install
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
location /nextcloud {
|
||||
proxy_pass http://127.0.0.1:{{ apache_port }}/nextcloud;
|
||||
}
|
||||
|
||||
location ~ /nextcloud/.*\.php$ {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
proxy_pass http://127.0.0.1:{{ apache_port }};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue