AjoutĀ : etc/nginx/org/chatperche/nuage
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Wed, 23 Jan 2019 16:16:12 +0000 (17:16 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Wed, 23 Jan 2019 16:16:12 +0000 (17:16 +0100)
srv/ateliers/etc/nginx/org/chatperche/nuage/... [new symlink]
srv/ateliers/etc/nginx/org/chatperche/nuage/install [new symlink]
srv/ateliers/etc/nginx/org/chatperche/nuage/server.conf.m4 [new file with mode: 0644]

diff --git a/srv/ateliers/etc/nginx/org/chatperche/nuage/... b/srv/ateliers/etc/nginx/org/chatperche/nuage/...
new file mode 120000 (symlink)
index 0000000..951b30d
--- /dev/null
@@ -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 (symlink)
index 0000000..135b97d
--- /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/chatperche/nuage/server.conf.m4 b/srv/ateliers/etc/nginx/org/chatperche/nuage/server.conf.m4
new file mode 100644 (file)
index 0000000..b0b97aa
--- /dev/null
@@ -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;
+}