Playbooks to a new Lilik
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.

160 lines
5.9 KiB

  1. ---
  2. # version to install
  3. seafile_install_version: '6.0.5'
  4. # names, files and directory locations
  5. seafile_user: seafile
  6. seafile_user_home: /home/seafile
  7. seafile_org_name: LILiK
  8. seafile_server_name: '{{ seafile_org_name }}'
  9. seafile_ip_or_domain: seafile.lilik.it
  10. seafile_service_url: https://{{ seafile_ip_or_domain }}
  11. seafile_quota_enable: false
  12. seafile_quota_default: 2
  13. seafile_history_keepall: true # set to false to enable keep_days limit
  14. seafile_history_keep_days: 30
  15. seafile_max_upload_size_enable: false # set to true to enable max
  16. seafile_max_upload_size: 200 # MB
  17. seafile_max_download_dir_size_enable: false # set to true to enable max
  18. seafile_max_download_dir_size: 200 # MB
  19. seafile_email_enable: enable
  20. seafile_email_use_tls: false
  21. #seafile_email_host: smtp.myisp.example
  22. seafile_email_user: '{{ seafile_seahub_admin_email }}'
  23. seafile_email_password: ''
  24. seafile_email_port: 25
  25. seafile_default_from_email: '{{ seafile_email_user }}'
  26. seafile_server_email: '{{ seafile_email_user }}'
  27. seafile_time_zone: 'Europe/Brussels'
  28. seafile_site_base: 'http://{{ seafile_ip_or_domain }}/'
  29. seafile_site_name: '{{ seafile_org_name }}' # used in email notifications
  30. seafile_site_title: '{{ seafile_org_name }}'
  31. seafile_site_root: '/'
  32. seafile_cloud_mode: true
  33. seafile_logo_path: 'custom/ginsys_seafile_logo.png'
  34. seafile_fastcgi_enabled: true
  35. # webdav settings
  36. seafile_webdav_enabled: true
  37. seafile_webdav_fastcgi: true
  38. seafile_webdav_path: /dav
  39. # seahub settings
  40. seafile_seahub_admin_email: zolfa@lilik.it
  41. seafile_seahub_admin_password: zolfa
  42. # database settings
  43. seafile_backend: mysql
  44. #mysql configuration
  45. #
  46. seafile_db_user: 'seafile'
  47. seafile_db_host: 127.0.0.1
  48. seafile_db_name:
  49. ccnet: 'sf_ccnet'
  50. seafile: 'sf_seafile'
  51. seahub: 'sf_seahub'
  52. mysql_bind_address: '{{ seafile_db_host }}'
  53. mysql_db:
  54. - name: '{{ seafile_db_name.ccnet }}'
  55. replicate: no
  56. - name: '{{ seafile_db_name.seafile }}'
  57. replicate: no
  58. - name: '{{ seafile_db_name.seahub }}'
  59. replicate: no
  60. mysql_users:
  61. - name: '{{ seafile_db_user }}'
  62. pass: '{{ seafile_db_pass }}'
  63. priv: >
  64. {{ seafile_db_name.ccnet ~ ".*:ALL/" ~
  65. seafile_db_name.seafile ~ ".*:ALL/" ~
  66. seafile_db_name.seahub ~ ".*:ALL" }}
  67. #mysql_root_db_pass: dark
  68. #seafile_db_pass: pippopippo
  69. #nginx configuration
  70. #
  71. nginx_max_clients: 128
  72. nginx_http_params:
  73. sendfile: "on"
  74. tcp_nopush: "on"
  75. tcp_nodelay: "on"
  76. keepalive_timeout: "65"
  77. access_log: "/var/log/nginx/access.log"
  78. error_log: "/var/log/nginx/error.log"
  79. types_hash_max_size: 2048
  80. letsencrypt: true
  81. letsencrypt_acme_dir: "https://acme-v01.api.letsencrypt.org/directory"
  82. nginx_sites:
  83. - server:
  84. file_name: '{{ seafile_ip_or_domain }}'
  85. server_name: '{{ seafile_ip_or_domain }}'
  86. listen: 80
  87. use_for_challenge: True
  88. location:
  89. - name: /
  90. rewrite: ^ https://$http_host$request_uri? permanent
  91. - server:
  92. file_name: '{{ seafile_ip_or_domain }}-ssl'
  93. server_name: '{{ seafile_ip_or_domain }}'
  94. listen: 443
  95. ssl: "on"
  96. ssl_certificate_key: /etc/ssl/private/{{ seafile_ip_or_domain }}.key
  97. ssl_certificate: /etc/ssl/private/{{ seafile_ip_or_domain }}.crt
  98. letsencrypt:
  99. ssl_certificate_req: /etc/ssl/private/{{ seafile_ip_or_domain }}.csr
  100. ssl_org: LILiK
  101. ssl_email: "zolfa@lilik.it"
  102. ssl_cn: '{{ seafile_ip_or_domain }}'
  103. location:
  104. - name: /
  105. fastcgi_pass: 127.0.0.1:{{ seafile_fastcgi_port }}
  106. "fastcgi_param SCRIPT_FILENAME": $document_root$fastcgi_script_name
  107. "fastcgi_param PATH_INFO": $fastcgi_script_name
  108. "fastcgi_param SERVER_PROTOCOL": $server_protocol
  109. "fastcgi_param QUERY_STRING": $query_string
  110. "fastcgi_param REQUEST_METHOD": $request_method
  111. "fastcgi_param CONTENT_TYPE": $content_type
  112. "fastcgi_param CONTENT_LENGTH": $content_length
  113. "fastcgi_param SERVER_ADDR": $server_addr
  114. "fastcgi_param SERVER_PORT": $server_port
  115. "fastcgi_param SERVER_NAME": $server_name
  116. "fastcgi_param HTTPS": $https
  117. "fastcgi_param HTTP_SCHEME": https
  118. access_log: /var/log/nginx/seahub.access.log
  119. error_log: /var/log/nginx/seahub.error.log
  120. - name: /seafhttp
  121. rewrite: ^/seafhttp(.*)$ $1 break
  122. proxy_pass: http://127.0.0.1:{{ seafile_httpserver_port }}
  123. client_max_body_size: 0
  124. - name: /media
  125. root: '{{ seafile_latest_dir }}/seahub'
  126. - name: '{{ seafile_webdav_path }}'
  127. fastcgi_pass: 127.0.0.1:{{ seafile_webdav_port }}
  128. "fastcgi_param SCRIPT_FILENAME": $document_root$fastcgi_script_name
  129. "fastcgi_param PATH_INFO": $fastcgi_script_name
  130. "fastcgi_param SERVER_PROTOCOL": $server_protocol
  131. "fastcgi_param QUERY_STRING": $query_string
  132. "fastcgi_param REQUEST_METHOD": $request_method
  133. "fastcgi_param CONTENT_TYPE": $content_type
  134. "fastcgi_param CONTENT_LENGTH": $content_length
  135. "fastcgi_param SERVER_ADDR": $server_addr
  136. "fastcgi_param SERVER_PORT": $server_port
  137. "fastcgi_param SERVER_NAME": $server_name
  138. "fastcgi_param HTTPS": off
  139. "fastcgi_param HTTP_SCHEME": http
  140. client_max_body_size: 50m
  141. access_log: /var/log/nginx/seafdav.access.log
  142. error_log: /var/log/nginx/seafdav.error.log