OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../nginx/nginx.conf
  5. # Copyright (C) 2009 The OpenSDE Project
  6. # Copyright (C) 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. if [ $prefix_auto = 1 ]; then
  16. prefix="opt/nginx"
  17. set_confopt
  18. fi
  19. cleanconfopt=0
  20. confopt="--prefix=$root/$prefix"
  21. [[ "$sysconfdir" = */$pkg ]] || sysconfdir=$sysconfdir/$pkg
  22. var_append confopt ' ' "--conf-path=$sysconfdir/nginx.conf"
  23. # set path to nginx.pid file
  24. var_append confopt ' ' "--pid-path=$localstatedir/run/nginx.pid"
  25. # set path to nginx.lock file
  26. var_append confopt ' ' "--lock-path=$localstatedir/lock/nginx.lock"
  27. # set path to the http proxy temporary files
  28. var_append confopt ' ' "--http-proxy-temp-path=$localstatedir/temp/proxy_temp"
  29. # set path to the http fastcgi temporary
  30. var_append confopt ' ' "--http-fastcgi-temp-path=$localstatedir/temp/fastcgi_temp"
  31. # set path to the http client request body
  32. var_append confopt ' ' "--http-client-body-temp-path=$localstatedir/temp/client_body_temp"
  33. # log directories
  34. logdir="$localstatedir/log/$pkg"
  35. var_append confopt ' ' "--http-log-path=$logdir/access.log"
  36. var_append confopt ' ' "--error-log-path=$logdir/error.log"
  37. # ssl support
  38. if pkginstalled openssl; then
  39. var_append confopt ' ' "--with-http_ssl_module"
  40. fi
  41. # add some optional modules not built by default
  42. for x in stub_status flv realip gzip_static image_filter; do
  43. var_append confopt ' ' "--with-http_${x}_module"
  44. done