remove bower and other things needed for 5.4.0
This commit is contained in:
parent
ca907c6344
commit
793fe1534f
6 changed files with 48 additions and 34 deletions
|
@ -10,7 +10,7 @@ cryptpad_pkg:
|
||||||
cryptpad_node_version: '16'
|
cryptpad_node_version: '16'
|
||||||
|
|
||||||
cryptpad_path: '/var/www/cryptpad'
|
cryptpad_path: '/var/www/cryptpad'
|
||||||
cryptpad_version: "5.3.0"
|
cryptpad_version: "5.4.0"
|
||||||
|
|
||||||
# Config.js
|
# Config.js
|
||||||
cryptpad_httpUnsafeOrigin: "https://cryptpad.example.org"
|
cryptpad_httpUnsafeOrigin: "https://cryptpad.example.org"
|
||||||
|
@ -18,6 +18,7 @@ cryptpad_httpSafeOrigin: ''
|
||||||
cryptpad_httpAddress: "::"
|
cryptpad_httpAddress: "::"
|
||||||
cryptpad_httpPort: "3000"
|
cryptpad_httpPort: "3000"
|
||||||
cryptpad_httpSafePort: "3001"
|
cryptpad_httpSafePort: "3001"
|
||||||
|
cryptpad_websocketPort: "3003"
|
||||||
cryptpad_maxWorkers: "4"
|
cryptpad_maxWorkers: "4"
|
||||||
cryptpad_adminKeys:
|
cryptpad_adminKeys:
|
||||||
- "[cryptpad-user1@my.awesome.website/eglegkejfizu#otoUFng55s64Are856URjvAHGGv-89=]"
|
- "[cryptpad-user1@my.awesome.website/eglegkejfizu#otoUFng55s64Are856URjvAHGGv-89=]"
|
||||||
|
@ -77,5 +78,4 @@ nginx_vhosts:
|
||||||
letsencrypt: 'false'
|
letsencrypt: 'false'
|
||||||
selfsigned: 'true'
|
selfsigned: 'true'
|
||||||
ssl_name: 'cryptpad.example.org'
|
ssl_name: 'cryptpad.example.org'
|
||||||
proxy_pass: 'localhost'
|
proxy_pass: 'localhost'
|
||||||
debug: 'false'
|
|
|
@ -5,7 +5,7 @@
|
||||||
cmd: awk '/cryptpad/{getline; print $2}' {{ cryptpad_path }}/package-lock.json | awk -F\" '{print $2}'
|
cmd: awk '/cryptpad/{getline; print $2}' {{ cryptpad_path }}/package-lock.json | awk -F\" '{print $2}'
|
||||||
register: cryptpad_version_installed
|
register: cryptpad_version_installed
|
||||||
|
|
||||||
- name: "[Check] - Bower folder exists"
|
- name: "[Check] - Bower folder exists" # Needs to be changed as bower is removed now...
|
||||||
stat:
|
stat:
|
||||||
path: "{{ cryptpad_path }}/www/bower_components"
|
path: "{{ cryptpad_path }}/www/bower_components"
|
||||||
register: bower_folder
|
register: bower_folder
|
||||||
|
|
|
@ -1,15 +1,19 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: "[Install] - Cryptpad via npm"
|
- name: "[Update] - Download all dependencies"
|
||||||
npm:
|
shell:
|
||||||
path: "{{ cryptpad_path }}"
|
cmd: "npm install"
|
||||||
|
args:
|
||||||
|
chdir: "{{ cryptpad_path }}"
|
||||||
|
become: yes
|
||||||
become_user: "{{ cryptpad_user }}"
|
become_user: "{{ cryptpad_user }}"
|
||||||
|
notify: restart cryptpad
|
||||||
|
|
||||||
- name: "[Install] - Cryptpad dependencies via bower"
|
- name: "[Update] - Copy client-side dependencies"
|
||||||
bower:
|
shell:
|
||||||
path: "{{ cryptpad_path }}"
|
cmd: "npm run install:components"
|
||||||
|
args:
|
||||||
|
chdir: "{{ cryptpad_path }}"
|
||||||
|
become: yes
|
||||||
become_user: "{{ cryptpad_user }}"
|
become_user: "{{ cryptpad_user }}"
|
||||||
register: result
|
notify: restart cryptpad
|
||||||
retries: 3
|
|
||||||
delay: 15
|
|
||||||
until: result is not failed
|
|
|
@ -15,9 +15,3 @@
|
||||||
name: "{{ cryptpad_pkg }}"
|
name: "{{ cryptpad_pkg }}"
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: "[Dependencies] - Install bower"
|
|
||||||
npm:
|
|
||||||
name: bower
|
|
||||||
global: yes
|
|
||||||
state: latest
|
|
||||||
|
|
|
@ -5,22 +5,25 @@
|
||||||
name: cryptpad
|
name: cryptpad
|
||||||
state: stopped
|
state: stopped
|
||||||
|
|
||||||
- name: "[Update] - npm"
|
- name: "[Update] - Download all dependencies"
|
||||||
npm:
|
shell:
|
||||||
name: npm
|
cmd: "npm install"
|
||||||
global: yes
|
args:
|
||||||
state: latest
|
chdir: "{{ cryptpad_path }}"
|
||||||
|
become: yes
|
||||||
- name: "[Update] - bower"
|
become_user: "{{ cryptpad_user }}"
|
||||||
bower:
|
|
||||||
state: latest
|
|
||||||
path: "{{ cryptpad_path }}"
|
|
||||||
register: result
|
|
||||||
retries: 3
|
|
||||||
delay: 15
|
|
||||||
until: result is not failed
|
|
||||||
notify: restart cryptpad
|
notify: restart cryptpad
|
||||||
|
|
||||||
|
- name: "[Update] - Copy client-side dependencies"
|
||||||
|
shell:
|
||||||
|
cmd: "npm run install:components"
|
||||||
|
args:
|
||||||
|
chdir: "{{ cryptpad_path }}"
|
||||||
|
become: yes
|
||||||
|
become_user: "{{ cryptpad_user }}"
|
||||||
|
notify: restart cryptpad
|
||||||
|
|
||||||
|
|
||||||
- name: "[Update] - Generate static pages"
|
- name: "[Update] - Generate static pages"
|
||||||
shell:
|
shell:
|
||||||
cmd: "npm run build"
|
cmd: "npm run build"
|
||||||
|
|
|
@ -92,6 +92,19 @@ module.exports = {
|
||||||
*/
|
*/
|
||||||
httpSafePort: {{ cryptpad_httpSafePort }},
|
httpSafePort: {{ cryptpad_httpSafePort }},
|
||||||
|
|
||||||
|
/* Websockets need to be exposed on a separate port from the rest of
|
||||||
|
* the platform's HTTP traffic. Port 3003 is used by default.
|
||||||
|
* You can change this to a different port if it is in use by a
|
||||||
|
* different service, but under most circumstances you can leave this
|
||||||
|
* commented and it will work.
|
||||||
|
*
|
||||||
|
* In production environments, your reverse proxy (usually NGINX)
|
||||||
|
* will need to forward websocket traffic (/cryptpad_websocket)
|
||||||
|
* to this port.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
websocketPort: {{ cryptpad_websocketPort }},
|
||||||
|
|
||||||
/* CryptPad will launch a child process for every core available
|
/* CryptPad will launch a child process for every core available
|
||||||
* in order to perform CPU-intensive tasks in parallel.
|
* in order to perform CPU-intensive tasks in parallel.
|
||||||
* Some host environments may have a very large number of cores available
|
* Some host environments may have a very large number of cores available
|
||||||
|
|
Loading…
Reference in a new issue