From: Ludovic CHEVALIER Date: Wed, 23 Jan 2019 16:16:12 +0000 (+0100) Subject: AjoutĀ : etc/nginx/org/chatperche/nuage X-Git-Url: http://git.cyclocoop.org/?p=lhc%2Fadmin.git;a=commitdiff_plain;h=f24a819daaaba914c27e20177dc1d40c5f916741 AjoutĀ : etc/nginx/org/chatperche/nuage --- diff --git a/srv/ateliers/etc/nginx/org/chatperche/nuage/... b/srv/ateliers/etc/nginx/org/chatperche/nuage/... new file mode 120000 index 0000000..951b30d --- /dev/null +++ b/srv/ateliers/etc/nginx/org/chatperche/nuage/... @@ -0,0 +1 @@ +../... \ No newline at end of file diff --git a/srv/ateliers/etc/nginx/org/chatperche/nuage/install b/srv/ateliers/etc/nginx/org/chatperche/nuage/install new file mode 120000 index 0000000..135b97d --- /dev/null +++ b/srv/ateliers/etc/nginx/org/chatperche/nuage/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/chatperche/nuage/server.conf.m4 b/srv/ateliers/etc/nginx/org/chatperche/nuage/server.conf.m4 new file mode 100644 index 0000000..b0b97aa --- /dev/null +++ b/srv/ateliers/etc/nginx/org/chatperche/nuage/server.conf.m4 @@ -0,0 +1,42 @@ +server { + listen 80; + include /etc/nginx/conf.d/letsencrypt.conf; + server_name + nuage.chatperche.org; + disable_symlinks if_not_owner; + location / { + return 301 https://$http_host$request_uri; + } +} + +server { + listen 443 ssl; + server_name + nuage.chatperche.org; + + ssl_certificate /etc/nginx/org/heureux-cyclage/nuages/ssl/heureuxcyclage/crt.pem; + ssl_certificate_key /etc/nginx/org/heureux-cyclage/nuages/ssl/heureuxcyclage/key.pem; + + access_log /home/www/log/org/chatperche/nuage/access.log main; + error_log /home/www/log/org/chatperche/nuage/error.log warn; + # Path to the root of your installation + root /home/www/data/org/heureux-cyclage/nuages/instances/chatperche/nextcloud; + + location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34])\.php(?:$|/) { + include /etc/nginx/conf.d/fastcgi.conf; + fastcgi_param REDIRECT_STATUS 200; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass unix:/run/php5/fpm/php_nuages; + fastcgi_param NEXTCLOUD_CONFIG_DIR /home/www/data/org/heureux-cyclage/nuages/instances/chatperche/config; + } + + location ~ /common-apps/(.*)$ { + alias /home/www/data/org/heureux-cyclage/nuages/instances/chatperche/common/$1; + } + + location ~ /instance-apps/(.*)$ { + alias /home/www/data/org/heureux-cyclage/nuages/instances/chatperche/apps/$1; + } + + include /etc/nginx/conf.d/nuages.conf; +}