2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 00:06:36 +00:00
Commit Graph

1540 Commits

Author SHA1 Message Date
gavin
cb112dfb36 Merge branch 'master' into playbooks-update 2019-12-17 10:09:06 +05:30
Chinmay Pai
d1ebb4c3b2
security(nginx): use only strong ciphers over ssl (#869)
* security(nginx): use only strong ciphers over ssl

* drop support for TLSv1 and TLSv1.1, and add support for TLSv1.3
* disable all ciphers else for EECDH+AESGCM and EDH+AESGCM
* disable session ticketing
* use secp384r1 as certificate curve
* enable strict transport security with preloading
* enable xss-protection

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>

* chore: explicitly state ssl on listening socket

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-16 16:36:55 +05:30
Chinmay D. Pai
cac66a6b88
fix: invalid syntax for click option
ughhhhhhhhhh

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-15 13:59:12 +05:30
Chinmay D. Pai
699705f64b
fix: incorrect import statement
use six.moves instead of six

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-15 13:46:14 +05:30
Chinmay Pai
459432b195
fix: incorrect import statement
use six.moves instead of six
2019-12-15 13:45:17 +05:30
Chinmay D. Pai
d1a3017172
fix(get-app): handle existing directory and other formatting changes
* if a directory for the application already exists, provide user with 2
  options:

  * ask to remove the directory and reclone (overwrite)
  * ask if the user wants to reinstall the application

* separate get_app_name from get_app

* move building assets and postprocessing to install_app method

* make formatting changes to the code for flake8

* use reload_module from six instead of builtins

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-15 12:06:12 +05:30
Chinmay Pai
d2d577201d
fix: remove unused method and use six to reload module (#875)
* remove download_chart_of_accounts method as it is not being used
  anywhere

* use reload_module from six for flake8 fixes

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-15 10:41:27 +05:30
Marco Gabriel
72c70b23bf feat(easy_install): add support for debian 10
* Easy Installer did not support Debian 10 Buster, so I changed the playbooks to support Debian 10.
* Related Issue: #831
* Tested in a newly deployed Debian 10 Buster running on KVM and in a brand new deployed LXC Container (--container) also running fine.
2019-12-15 10:19:33 +05:30
Chinmay Pai
75ffa0325e
fix: use six to check for string types (#874)
fixes issue where unicode keyword does not exist for python3:

Traceback (most recent call last):
  File "/usr/local/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/frappe/.bench/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/.bench/bench/commands/setup.py", line 22, in setup_nginx
    make_nginx_conf(bench_path=".", yes=yes)
  File "/home/frappe/.bench/bench/config/nginx.py", line 13, in make_nginx_conf
    sites = prepare_sites(config, bench_path)
  File "/home/frappe/.bench/bench/config/nginx.py", line 100, in prepare_sites
    sites_configs = get_sites_with_config(bench_path=bench_path)
  File "/home/frappe/.bench/bench/config/nginx.py", line 217, in get_sites_with_config
    if isinstance(domain, str) or isinstance(domain, unicode):
NameError: name 'unicode' is not defined

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-15 10:16:21 +05:30
Development for People
7051aa3d4e fix(nginx): add redirect rules to avoid duplicate content 2019-12-07 11:35:21 +05:30
gavin
63737e3bae
Merge pull request #868 from Thunderbottom/cron-fix
fix(cron): change cron command for renewing ssl
2019-12-05 15:58:46 +05:30
Chinmay D. Pai
17b447591f
fix(cron): change cron command for renewing ssl
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-12-05 15:23:13 +05:30
Gavin D'souza
8b9c24559f Merge branch 'playbooks-update' of github.com:gavindsouza/bench into playbooks-update 2019-12-04 18:43:41 +05:30
Gavin D'souza
498e777b57 fix(ansible): deprecated warnings for | expression 2019-12-04 18:40:07 +05:30
Gavin D'souza
fd7d59d2be fix(ansible): deprecated warnings install loops 2019-12-04 18:35:42 +05:30
Gavin D'souza
3dc8b48da7 fix(ansible): python api deprecated warnings 2019-12-04 18:24:56 +05:30
gavin
7798c4b5f3
Merge pull request #866 from gavindsouza/bench-venv-fix
fix: bench update compatible venv installed pkg
2019-11-29 17:21:52 +05:30
Gavin D'souza
cd711b04dc fix: bench update compatible venv installed pkg 2019-11-29 16:48:52 +05:30
gavin
0a6ffd168b
Merge pull request #864 from gavindsouza/pin-honcho
fix: add honcho and pin dependency
2019-11-27 19:36:38 +05:30
Gavin D'souza
02826d7dce fix: add honcho and pin dependency 2019-11-27 19:34:27 +05:30
gavin
f2f986d6bf
Merge pull request #860 from gavindsouza/updated-requirements
chore: pinned requirements
2019-11-27 10:04:34 +05:30
gavin
1715ee27e0
Merge pull request #863 from gavindsouza/bench-requirements-fix
fix: don't update bench dependencies in bench-env
2019-11-27 10:04:20 +05:30
Gavin D'souza
489d3b2501 fix: update bench requirements for user 2019-11-26 18:08:50 +05:30
Gavin D'souza
ea106e89c9 fix: dont install bench dependencies in env 2019-11-26 11:24:40 +05:30
Gavin D'souza
c0b8da4d74 style: alphabetically sorted requirements 2019-11-18 14:00:26 +05:30
gavin
1d7e3ca383
Merge pull request #861 from gavindsouza/pinned-requirements
fix: add upgrade flags to pip install
2019-11-18 12:16:10 +05:30
Gavin D'souza
12912c5943 style: better readability and removed redundant flag 2019-11-17 16:06:24 +05:30
Gavin D'souza
025665a093 fix: update pinned requirements
after pinning requirements, to avoid incompatible 2nd level
dependencies of packages, pass the -U flag
2019-11-17 04:39:33 +05:30
Gavin D'souza
8a8405a8b4 chore: pinned requirements 2019-11-13 16:58:26 +05:30
gavin
1ca6cd3d8c
Merge pull request #859 from frappe/readme-update
chore(readme): updated pre-requisites
2019-11-13 13:18:20 +05:30
gavin
e8f3ebb222
chore(readme): updated pre-requisites 2019-11-13 13:17:33 +05:30
Saurabh
073f6d00a4
Merge pull request #854 from Thunderbottom/ansible-playbook-fix
chore: pin ansible version to 2.8.5
2019-11-04 17:35:47 +05:30
Chinmay D. Pai
ba4602bb2b
chore: pin ansible version to 2.8.5
i think some changes to the newer version of ansible api (2.9.0) causes
mariadb installation to fail spectacularly. pinning the ansible version
to 2.8.5 should fix this issue for now.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-11-04 17:32:17 +05:30
gavin
16da871a8b
Merge pull request #852 from zerodhatech/set_redis_hosts
chore(bench-cli): commands to set redis hosts
2019-11-04 17:11:21 +05:30
gavin
13c4db4c2e
chore(style): format string indents 2019-11-04 17:10:39 +05:30
Shridhar Patil
787625fe28 commands to set redis hosts 2019-11-03 10:59:56 +05:30
gavin
fb5c4d0dad
Merge pull request #851 from Paul-STHL/fix-arch-crontab
fix(Crontab): ArchLinux which uses the FreeBSD syntax
2019-11-01 12:58:58 +05:30
Paul Banks
b8cc8b03f7 Crontab: Fix for ArchLinux which uses the FreeBSD syntax 2019-10-25 08:28:49 +00:00
gavin
9c854c1892
Merge pull request #809 from vrms/vrms_enhance-README
fix(docs): README enhancements and references
2019-10-22 11:43:06 +05:30
gavin
89d70714da
Merge pull request #825 from kennethsequeira/patch-2
docs(fix): Update Python info in pre-requisites
2019-10-22 11:35:14 +05:30
gavin
c9b5515517
Merge branch 'master' into patch-2 2019-10-22 11:34:38 +05:30
Saurabh
9ff9a0a622
Merge pull request #849 from saurabh6790/libssl-fix
fix: setup libssl dependancy by checking distribution
2019-10-21 15:52:27 +05:30
gavin
ce6b4c8a11 fix: git depth, fixed requirements (#845) 2019-10-21 15:48:38 +05:30
Saurabh
6f3f8f6eb0 fix: version comparison 2019-10-21 15:40:19 +05:30
Saurabh
7af5e6732d fix: setup libssl dependancy by checking distribution 2019-10-21 15:36:02 +05:30
gavin
5c5993bf01
Merge pull request #846 from zuron7/patch-1
docs: readme easyinstall username clarification
2019-10-20 19:35:10 +05:30
gavin
dd0236b9aa
docs: formatting readme 2019-10-20 19:33:57 +05:30
Saurabh
b98a4b0db0
Merge pull request #843 from aldoblack/master
Replaced libssl1.0-dev packange name with libssl-dev
2019-10-19 19:18:22 +05:30
Varun Rajamane
d484538661
readme update - easyinstall username clarification
Clarifies to the user that the script will by default create a new user with the name frappe if the flag is not used.
2019-10-14 23:14:51 +05:30
gunnar
70ce045feb
Merge branch 'master' into vrms_enhance-README 2019-10-06 08:26:49 +02:00