您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

33 行
663B

  1. {{ ansible_managed | comment }}
  2. include /etc/nginx/includes/http-common.conf;
  3. server {
  4. listen 80;
  5. listen [::]:80;
  6. server_tokens off;
  7. server_name {{onlyoffice_server_name}};
  8. location /.well-known/acme-challenge {
  9. default_type "text/plain";
  10. root /var/www/default;
  11. }
  12. # enforce https
  13. #return 301 https://$server_name:443$request_uri;
  14. }
  15. server {
  16. listen 443;
  17. listen [::]:443;
  18. server_tokens off;
  19. server_name {{onlyoffice_server_name}};
  20. ssl_certificate /etc/ssl/certs/{{onlyoffice_server_name}}.fullchain.pem;
  21. ssl_certificate_key /etc/ssl/private/{{onlyoffice_server_name}}.key.pem;
  22. include /etc/nginx/includes/ds-*.conf;
  23. }