Skip to content

Commit 03eb468

Browse files
committed
Merge branch 'develop' into master
2 parents f5eeea1 + 185009d commit 03eb468

File tree

9 files changed

+17
-9
lines changed

9 files changed

+17
-9
lines changed

bootstrap.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,9 +1417,12 @@ maintainer_mail: \"$USERNAME@$HOSTNAME\" #Enter your e-mail address here
14171417
echo "force_https: no #Should be enabled when behind a reverse proxy that handles https for you, ensures all internal links are https" >> $STAGEDCONFIG
14181418
echo "mapped_http_port: $HOSTPORT #mapped webserver port on host system (for VM/docker only)
14191419
services: [ $SERVICES ] #List of services to provide, if set to [ all ], all possible services from the software categories you install will be provided. You can remove this and list specific services you want to enable. This is especially needed in case of a LaMachine installation that intends to only provide a single service.
1420-
webservertype: nginx #If set to anything different, the internal webserver will not be enabled/provided by LaMachine (which allows you to run your own external one), do leave webserver: true set as is though.
1421-
clam_include: \"\" #You can set this to a CLAM base configuration file that will be included from all the webservices, it allows you to do configure common traits like authentication
1422-
" >> $STAGEDCONFIG
1420+
webservertype: nginx #If set to anything different, the internal webserver will not be enabled/provided by LaMachine (which allows you to run your own external one), do leave webserver: true set as is though." >> $STAGEDCONFIG
1421+
if [[ $FLAVOUR == "vagrant" ]] || [[ $FLAVOUR == "docker" ]] || [[ $FLAVOUR == "singularity" ]] || [[ $FLAVOUR == "lxc" ]] || [[ $FLAVOUR == "remote" ]]; then
1422+
echo "clam_include: \"/usr/local/etc/base.config.yml\" #You can set this to a CLAM base configuration file that will be included from all the webservices, it allows you to do configure common traits like authentication" >> $STAGEDCONFIG
1423+
else
1424+
echo "clam_include: \"$BASEDIR/$LM_NAME/etc/base.config.yml\" #You can set this to a CLAM base configuration file that will be included from all the webservices, it allows you to do configure common traits like authentication" >> $STAGEDCONFIG
1425+
fi
14231426
if [[ $OS == "mac" ]] || [[ "$FLAVOUR" == "remote" ]]; then
14241427
echo "lab: false #Enable Jupyter Lab environment, note that this opens the system to arbitrary code execution and file system access! (provided the below password is known)" >> $STAGEDCONFIG
14251428
else

roles/alpino/templates/clam/alpino.config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ port: 8805
55
urlprefix: "alpino"
66
root: "{{www_data_path}}/alpino.clam/"
77
bindir: "{{lm_prefix}}/bin/"
8-
flaturl: "{% if http_port|int == 443 %}https://{% else %}http://{% endif %}{{hostname}}{% if http_port != 80 and http_port != 443 %}:{{http_port}}{% endif %}/flat"

roles/lamachine-core/tasks/webserver.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,13 @@
401401
state: link
402402
when: root and locality == "global"
403403

404+
- name: Adding base configuration for CLAM
405+
become: "{{lm_become}}"
406+
become_user: root
407+
template:
408+
src: "clam_base.config.yml"
409+
dest: "{{lm_prefix}}/etc/clam_base.config.yml"
410+
404411
- name: Installing lamastats for analytics
405412
include_role:
406413
name: lamachine-python-install
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
README: "DO NOT EDIT THIS FILE, IT WILL BE OVERWRITTEN ON LAMACHINE UPDATE! Create your own base.config.yml instead and change clam_include in your LaMachine configuration"
2+
{% if webserver and ("flat" in services or "all" in services) %}
3+
flaturl: "{% if http_port|int == 443 %}https://{% else %}http://{% endif %}{{hostname}}{% if http_port != 80 and http_port != 443 %}:{{http_port}}{% endif %}/flat"
4+
{% endif %}

roles/languagemachines-python/templates/clam/frog.config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ port: 8801
55
urlprefix: "frog"
66
root: "{{www_data_path}}/frog.clam/"
77
bindir: "{{lm_prefix}}/bin/"
8-
flaturl: "{% if http_port|int == 443 %}https://{% else %}http://{% endif %}{{hostname}}{% if http_port != 80 and http_port != 443 %}:{{http_port}}{% endif %}/flat"

roles/piccl/templates/clam/piccl.config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ include: "{{clam_include}}"
44
port: 8806
55
urlprefix: "piccl"
66
root: "{{www_data_path}}/piccl.clam/"
7-
flaturl: "{% if http_port|int == 443 %}https://{% else %}http://{% endif %}{{hostname}}{% if http_port != 80 and http_port != 443 %}:{{http_port}}{% endif %}/flat"
87
piccldir: "{{lm_prefix}}/opt/PICCL"
98
piccldataroot: "{{lm_prefix}}/opt/PICCL"

roles/spacy/templates/clam/spacy.config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ port: 8818
55
urlprefix: "spacy"
66
root: "{{www_data_path}}/spacy.clam/"
77
bindir: "{{lm_prefix}}/bin/"
8-
flaturl: "{% if http_port|int == 443 %}https://{% else %}http://{% endif %}{{hostname}}{% if http_port != 80 and http_port != 443 %}:{{http_port}}{% endif %}/flat"

roles/tscan/templates/clam/tscan.config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ urlprefix: "tscan"
66
root: "{{www_data_path}}/tscan.clam/"
77
bindir: "{{lm_prefix}}/bin/"
88
tscandir: "{{lm_prefix}}/src/tscan"
9-
flaturl: "{% if http_port|int == 443 %}https://{% else %}http://{% endif %}{{hostname}}{% if http_port != 80 and http_port != 443 %}:{{http_port}}{% endif %}/flat"

roles/valkuil/templates/clam/valkuil.config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ include: "{{clam_include}}"
44
port: 8813
55
urlprefix: "valkuil"
66
root: "{{www_data_path}}/valkuil.clam/"
7-
flaturl: "{% if http_port|int == 443 %}https://{% else %}http://{% endif %}{{hostname}}{% if http_port != 80 and http_port != 443 %}:{{http_port}}{% endif %}/flat"
87
valkuildir: "{{lm_prefix}}/src/valkuil-gecco"

0 commit comments

Comments
 (0)