refactoring

This commit is contained in:
Simon Vieille 2019-07-31 09:37:16 +02:00
parent 101e23ca07
commit 47e5b8c7e6
Signed by: deblan
GPG Key ID: 03383D15A1D31745
10 changed files with 11 additions and 4 deletions

4
.gitignore vendored
View File

@ -1 +1,3 @@
/helpers/crypt /etc/config
/share/bin/crypt
/share/bin/twigc

View File

@ -1,4 +1,8 @@
all: install
install: build-crypt
wget -q -O ./share/bin/twigc https://github.com/okdana/twigc/releases/download/v0.3.1/twigc.phar
chmod +x ./share/bin/twigc
build-crypt: build-crypt:
gcc -lcrypt ./src/crypt/crypt.c -o ./helpers/crypt gcc -lcrypt ./src/crypt/crypt.c -o ./share/bin/crypt

View File

@ -2,7 +2,7 @@
export SCRIPT_NAME="$(realpath "$0")" export SCRIPT_NAME="$(realpath "$0")"
export SCRIPT_PATH="$(dirname "$SCRIPT_NAME")" export SCRIPT_PATH="$(dirname "$SCRIPT_NAME")"
export PATH="$SCRIPT_PATH/../helpers/:$PATH" export PATH="$SCRIPT_PATH/../share/bin/:$PATH"
cd "$SCRIPT_PATH/../" cd "$SCRIPT_PATH/../"

Binary file not shown.

View File

@ -10,7 +10,8 @@
ErrorLog /services/web/logs/{{ DOMAIN }}.log ErrorLog /services/web/logs/{{ DOMAIN }}.log
CustomLog /services/web/logs/{{ DOMAIN }}.log combined CustomLog /services/web/logs/{{ DOMAIN }}.log combined
{% block force_https %}{% if WEB_HTTPS_FORCE == "yes" %} {% block force_https %}{% if WEB_HTTPS_FORCE == "yes" %}
Redirect permanent / https://{{ DOMAIN }}/{% endif %}{% endblock %} Redirect permanent / https://{{ DOMAIN }}/
{% endif %}{% endblock %}
<Directory {{ DOCUMENT_ROOT }}> <Directory {{ DOCUMENT_ROOT }}>
Options -Indexes +FollowSymLinks +MultiViews Options -Indexes +FollowSymLinks +MultiViews