Bob Mottram 7 年之前
父節點
當前提交
0c926f1b7a
共有 1 個文件被更改,包括 0 次插入9 次删除
  1. 0
    9
      src/freedombone-app-akaunting

+ 0
- 9
src/freedombone-app-akaunting 查看文件

304
 
304
 
305
         echo '  add_header Strict-Transport-Security max-age=15768000;' >> $akaunting_nginx_site
305
         echo '  add_header Strict-Transport-Security max-age=15768000;' >> $akaunting_nginx_site
306
         echo '' >> $akaunting_nginx_site
306
         echo '' >> $akaunting_nginx_site
307
-        echo '  # Logs' >> $akaunting_nginx_site
308
         echo '  access_log /dev/null;' >> $akaunting_nginx_site
307
         echo '  access_log /dev/null;' >> $akaunting_nginx_site
309
         echo '  error_log /dev/null;' >> $akaunting_nginx_site
308
         echo '  error_log /dev/null;' >> $akaunting_nginx_site
310
         echo '' >> $akaunting_nginx_site
309
         echo '' >> $akaunting_nginx_site
311
-        echo '  # Root' >> $akaunting_nginx_site
312
         echo "  root /var/www/$AKAUNTING_DOMAIN_NAME/htdocs;" >> $akaunting_nginx_site
310
         echo "  root /var/www/$AKAUNTING_DOMAIN_NAME/htdocs;" >> $akaunting_nginx_site
313
         echo '' >> $akaunting_nginx_site
311
         echo '' >> $akaunting_nginx_site
314
-        echo '  # Index' >> $akaunting_nginx_site
315
         echo '  index index.php;' >> $akaunting_nginx_site
312
         echo '  index index.php;' >> $akaunting_nginx_site
316
         echo '' >> $akaunting_nginx_site
313
         echo '' >> $akaunting_nginx_site
317
-        echo '  # PHP' >> $akaunting_nginx_site
318
         echo '  location ~ \.php {' >> $akaunting_nginx_site
314
         echo '  location ~ \.php {' >> $akaunting_nginx_site
319
         echo '    include snippets/fastcgi-php.conf;' >> $akaunting_nginx_site
315
         echo '    include snippets/fastcgi-php.conf;' >> $akaunting_nginx_site
320
         echo '    fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;' >> $akaunting_nginx_site
316
         echo '    fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;' >> $akaunting_nginx_site
321
         echo '    fastcgi_read_timeout 30;' >> $akaunting_nginx_site
317
         echo '    fastcgi_read_timeout 30;' >> $akaunting_nginx_site
322
         echo '  }' >> $akaunting_nginx_site
318
         echo '  }' >> $akaunting_nginx_site
323
         echo '' >> $akaunting_nginx_site
319
         echo '' >> $akaunting_nginx_site
324
-        echo '  # Location' >> $akaunting_nginx_site
325
         echo '  location / {' >> $akaunting_nginx_site
320
         echo '  location / {' >> $akaunting_nginx_site
326
         function_check nginx_limits
321
         function_check nginx_limits
327
         nginx_limits $AKAUNTING_DOMAIN_NAME '15m'
322
         nginx_limits $AKAUNTING_DOMAIN_NAME '15m'
355
     echo '' >> $akaunting_nginx_site
350
     echo '' >> $akaunting_nginx_site
356
     echo "  root /var/www/$AKAUNTING_DOMAIN_NAME/htdocs;" >> $akaunting_nginx_site
351
     echo "  root /var/www/$AKAUNTING_DOMAIN_NAME/htdocs;" >> $akaunting_nginx_site
357
     echo '' >> $akaunting_nginx_site
352
     echo '' >> $akaunting_nginx_site
358
-    echo '  # Index' >> $akaunting_nginx_site
359
     echo '  index index.php;' >> $akaunting_nginx_site
353
     echo '  index index.php;' >> $akaunting_nginx_site
360
     echo '' >> $akaunting_nginx_site
354
     echo '' >> $akaunting_nginx_site
361
-    echo '  # PHP' >> $akaunting_nginx_site
362
     echo '  location ~ \.php {' >> $akaunting_nginx_site
355
     echo '  location ~ \.php {' >> $akaunting_nginx_site
363
     echo '    include snippets/fastcgi-php.conf;' >> $akaunting_nginx_site
356
     echo '    include snippets/fastcgi-php.conf;' >> $akaunting_nginx_site
364
     echo '    fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;' >> $akaunting_nginx_site
357
     echo '    fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;' >> $akaunting_nginx_site
365
     echo '    fastcgi_read_timeout 30;' >> $akaunting_nginx_site
358
     echo '    fastcgi_read_timeout 30;' >> $akaunting_nginx_site
366
     echo '  }' >> $akaunting_nginx_site
359
     echo '  }' >> $akaunting_nginx_site
367
     echo '' >> $akaunting_nginx_site
360
     echo '' >> $akaunting_nginx_site
368
-    echo '  # Location' >> $akaunting_nginx_site
369
     echo '  location / {' >> $akaunting_nginx_site
361
     echo '  location / {' >> $akaunting_nginx_site
370
     function_check nginx_limits
362
     function_check nginx_limits
371
     nginx_limits $AKAUNTING_DOMAIN_NAME '15m'
363
     nginx_limits $AKAUNTING_DOMAIN_NAME '15m'
379
     echo '  location ~ /\.(ht|git) {' >> $akaunting_nginx_site
371
     echo '  location ~ /\.(ht|git) {' >> $akaunting_nginx_site
380
     echo '    deny all;' >> $akaunting_nginx_site
372
     echo '    deny all;' >> $akaunting_nginx_site
381
     echo '  }' >> $akaunting_nginx_site
373
     echo '  }' >> $akaunting_nginx_site
382
-    echo '' >> $akaunting_nginx_site
383
     echo '}' >> $akaunting_nginx_site
374
     echo '}' >> $akaunting_nginx_site
384
 
375
 
385
     function_check configure_php
376
     function_check configure_php