Corrections : etc/nginx/org/heureux-cyclage/burettes
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 3 Apr 2015 08:59:29 +0000 (10:59 +0200)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 3 Apr 2015 08:59:29 +0000 (10:59 +0200)
srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/common.conf
srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/install [changed from file to symlink]
srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/name.conf [new file with mode: 0644]
srv/ateliers/etc/nginx/org/heureux-cyclage/burettes/server.conf

index 8483a6c..9dd88e9 100644 (file)
@@ -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;
deleted file mode 100755 (executable)
index 5ad51de8f45463d3d523bbd2e1fdbcf964fd2fa9..0000000000000000000000000000000000000000
+++ /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"
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..135b97d18b3bcc472c3501d1d8165ca3b4ead05c
--- /dev/null
@@ -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 (file)
index 0000000..be0ad29
--- /dev/null
@@ -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;
index 2094c7f..19474d1 100644 (file)
@@ -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 {