From 377bc1616e87fa7061ca0708cd4a0831c54c6f1a Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Fri, 3 Apr 2015 10:59:29 +0200 Subject: [PATCH] =?utf8?q?Corrections=C2=A0:=20=20=20=20=20=20=20=20=20etc?= =?utf8?q?/nginx/org/heureux-cyclage/burettes?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../org/heureux-cyclage/burettes/common.conf | 48 +----------------- .../org/heureux-cyclage/burettes/install | 47 +----------------- .../org/heureux-cyclage/burettes/name.conf | 47 ++++++++++++++++++ .../org/heureux-cyclage/burettes/server.conf | 49 +------------------ 4 files changed, 50 insertions(+), 141 deletions(-) mode change 100755 => 120000 srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/install create mode 100644 srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/name.conf diff --git a/srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/common.conf b/srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/common.conf index 8483a6c..9dd88e9 100644 --- a/srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/common.conf +++ b/srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/common.conf @@ -1,50 +1,4 @@ -server_name - burettes.heureux-cyclage.org - burette.atelier-etincelle.org - burette.atelier-etincelle.heureux-cyclage.org - burette.atelierdynamo.fr - burette.autourducycle.heureux-cyclage.org - burette.bretzselle.heureux-cyclage.org - burette.bretzselle.org - burette.changedechaine.heureux-cyclage.org - burette.cyclesetmanivelles.heureux-cyclage.org - burette.cyclocoop.heureux-cyclage.org - burette.cyclocoop.org - burette.cyclofficineangouleme.heureux-cyclage.org - burette.dynamo.heureux-cyclage.org - burette.etudesetchantiersidf.heureux-cyclage.org - burette.eturecup.heureux-cyclage.org - burette.eturecup.org - burette.labecaneajules.fr - burette.labecaneajules.heureux-cyclage.org - burette.lapetiterennes.heureux-cyclage.org - burette.lapetiterennes.org - burette.laptiterustine.heureux-cyclage.org - burette.larouelibre.heureux-cyclage.org - burette.la-roue-libre.com - burette.lechatperche.heureux-cyclage.org - burette.mig.heureux-cyclage.org - burette.mobilidees.heureux-cyclage.org - burette.mobilidees.org - burette.ohcyclo.heureux-cyclage.org - burette.ptitvelo.heureux-cyclage.org - burette.ptitvelo.net - burette.recupr.heureux-cyclage.org - burette.recupr.org - burette.repeyre.fr - burette.repeyre.heureux-cyclage.org - burette.rouepet.heureux-cyclage.org - burette.rouepet.org - burette.txirrindola.heureux-cyclage.org - burette.txirrindola.org - burette.velocampus.net - burette.velocampus_nantes.heureux-cyclage.org - burette.velorution.org - burette.velorution_idf.heureux-cyclage.org - burette.velorutiontoulouse.heureux-cyclage.org - burette.velosenville.org - burette.vieuxbiclou.heureux-cyclage.org - burette.vieuxbiclou.org; +include /etc/nginx/heureux-cyclage/burettes/name.conf client_body_buffer_size 1024k; client_max_body_size 10m; diff --git a/srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/install b/srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/install deleted file mode 100755 index 5ad51de..0000000 --- a/srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/install +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh -eu -# SYNTAX: $site -# DESCRIPTION: install nginx(1) site $site - -# ACTION: initialize from ./ - test -L "$0" && tool="$(readlink -e "$0")" || tool=$0 - tool=$(readlink -e "${tool%/*}"/...) - . "$tool"/lib/install.sh -# ACTION: initialize $sv from ./etc/$sv/ - sv=${cmd##*/etc/} - sv=${sv%%/*} -# ACTION: initialize $sv from ./sys/$sv/ - nginx_home=$("$tool"/cat sys/"$sv"/home) - nginx_user=$("$tool"/cat sys/"$sv"/user) -# ACTION: initialize $site from ./etc/$sv/$site/install - site=${cmd##*/"$sv"/} - site=${site%/install} - site=${1:-$site} -# ACTION: install from ./etc/$sv/$site/ - www_user=$("$tool"/cat sys/"$sv"/"$site"/user) || - www_user=$(printf %s www-"$site" | tr -c '[:alnum:]' -) - www_home=$("$tool"/cat sys/"$sv"/"$site"/home) || - www_home="$nginx_home"/"$site" - nginx_log_home=$("$tool"/cat sys/"$sv"/log/home) - nginx_log_user=$("$tool"/cat sys/"$sv"/log/user) - "$tool"/etc/user/adduser "$www_user" \ - --disabled-login \ - --disabled-password \ - --group \ - --home "$www_home" \ - --shell /bin/false \ - --system - "$tool"/ssh-sudo \ - install -D -d -m 2750 -o "$www_user" -g "$www_user" \ - "$www_home" - "$tool"/ssh-sudo \ - adduser "$nginx_user" "$www_user" - "$tool"/ssh-sudo \ - install -D -d -m 2750 -o "$nginx_log_user" -g "$nginx_log_user" \ - "$nginx_log_home"/"$site" - "$tool"/ssh-sudo \ - install -D -d -m 750 -o root -g root \ - /etc/"$sv"/"$site" - etckeeper_exit - etckeeper_exit () { true; } - "$tool"/install etc/"$sv"/"$site" diff --git a/srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/install b/srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/install new file mode 120000 index 0000000..135b97d --- /dev/null +++ b/srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/install @@ -0,0 +1 @@ +.../lib/tool/admin/etc/nginx/$site/install \ No newline at end of file diff --git a/srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/name.conf b/srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/name.conf new file mode 100644 index 0000000..be0ad29 --- /dev/null +++ b/srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/name.conf @@ -0,0 +1,47 @@ +server_name + burettes.heureux-cyclage.org + burette.atelier-etincelle.heureux-cyclage.org + burette.atelier-etincelle.org + burette.atelierdynamo.fr + burette.autourducycle.heureux-cyclage.org + burette.bretzselle.heureux-cyclage.org + burette.bretzselle.org + burette.changedechaine.heureux-cyclage.org + burette.cyclesetmanivelles.heureux-cyclage.org + burette.cyclocoop.heureux-cyclage.org + burette.cyclocoop.org + burette.cyclofficineangouleme.heureux-cyclage.org + burette.dynamo.heureux-cyclage.org + burette.etudesetchantiersidf.heureux-cyclage.org + burette.eturecup.heureux-cyclage.org + burette.eturecup.org + burette.labecaneajules.fr + burette.labecaneajules.heureux-cyclage.org + burette.lapetiterennes.heureux-cyclage.org + burette.lapetiterennes.org + burette.laptiterustine.heureux-cyclage.org + burette.larouelibre.heureux-cyclage.org + burette.la-roue-libre.com + burette.lechatperche.heureux-cyclage.org + burette.mig.heureux-cyclage.org + burette.mobilidees.heureux-cyclage.org + burette.mobilidees.org + burette.ohcyclo.heureux-cyclage.org + burette.ptitvelo.heureux-cyclage.org + burette.ptitvelo.net + burette.recupr.heureux-cyclage.org + burette.recupr.org + burette.repeyre.fr + burette.repeyre.heureux-cyclage.org + burette.rouepet.heureux-cyclage.org + burette.rouepet.org + burette.txirrindola.heureux-cyclage.org + burette.txirrindola.org + burette.velocampus.net + burette.velocampus_nantes.heureux-cyclage.org + burette.velorution.org + burette.velorution_idf.heureux-cyclage.org + burette.velorution_toulouse.heureux-cyclage.org + burette.velosenville.org + burette.vieuxbiclou.heureux-cyclage.org + burette.vieuxbiclou.org; diff --git a/srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/server.conf b/srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/server.conf index 2094c7f..19474d1 100644 --- a/srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/server.conf +++ b/srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/server.conf @@ -1,53 +1,6 @@ server { listen 80; - server_name - burettes.heureux-cyclage.org - burette.atelier-etincelle.heureux-cyclage.org - burette.atelier-etincelle.org - burette.atelierdynamo.fr - burette.autourducycle.heureux-cyclage.org - burette.bretzselle.heureux-cyclage.org - burette.bretzselle.org - burette.changedechaine.heureux-cyclage.org - burette.cyclesetmanivelles.heureux-cyclage.org - burette.cyclocoop.heureux-cyclage.org - burette.cyclocoop.org - burette.cyclofficineangouleme.heureux-cyclage.org - burette.dynamo.heureux-cyclage.org - burette.etudesetchantiersidf.heureux-cyclage.org - burette.eturecup.heureux-cyclage.org - burette.eturecup.org - burette.labecaneajules.fr - burette.labecaneajules.heureux-cyclage.org - burette.lapetiterennes.heureux-cyclage.org - burette.lapetiterennes.org - burette.laptiterustine.heureux-cyclage.org - burette.larouelibre.heureux-cyclage.org - burette.la-roue-libre.com - burette.lechatperche.heureux-cyclage.org - burette.mig.heureux-cyclage.org - burette.mobilidees.heureux-cyclage.org - burette.mobilidees.org - burette.ohcyclo.heureux-cyclage.org - burette.ptitvelo.heureux-cyclage.org - burette.ptitvelo.net - burette.recupr.heureux-cyclage.org - burette.recupr.org - burette.repeyre.fr - burette.repeyre.heureux-cyclage.org - burette.rouepet.heureux-cyclage.org - burette.rouepet.org - burette.txirrindola.heureux-cyclage.org - burette.txirrindola.org - burette.velocampus.net - burette.velocampus_nantes.heureux-cyclage.org - burette.velorution.org - burette.velorution_idf.heureux-cyclage.org - burette.velorution_toulouse.heureux-cyclage.org - burette.velosenville.org - burette.vieuxbiclou.heureux-cyclage.org - burette.vieuxbiclou.org; - + include /etc/nginx/heureux-cyclage/burettes/name.conf return 301 https://$host$request_uri; } server { -- 2.20.1