Modifications : etc/nginx/net/ptitvelo/nuage/server.conf.m4
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Wed, 23 Jan 2019 10:05:55 +0000 (11:05 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Wed, 23 Jan 2019 10:05:55 +0000 (11:05 +0100)
srv/ateliers/etc/nginx/net/ptitvelo/nuage/server.conf.m4

index e69de29..5eac6b1 100644 (file)
@@ -0,0 +1,33 @@
+server {
+       listen 80;
+       include /etc/nginx/conf.d/letsencrypt.conf;
+       server_name
+               nuage.ptitvelo.net;
+       disable_symlinks if_not_owner;
+       location / {
+               return 301 https://$http_host$request_uri;
+       }
+}
+
+server {
+       listen 443 ssl;
+       server_name
+               nuage.ptitvelo.net;
+
+       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/net/ptitvelo/nuage/access.log main;
+       error_log  /home/www/log/net/ptitvelo/nuage/error.log warn;
+       # Path to the root of your installation
+       root /home/www/data/org/heureux-cyclage/nuages/instances/ptitvelo/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/ptitvelo/config;
+       }
+       include /etc/nginx/conf.d/nuages.conf;
+}