default.conf 868B

12345678910111213141516171819202122232425262728293031
  1. server {
  2. listen 443;
  3. ssl_certificate /etc/letsencrypt/archive/event.leecy.org.tw/fullchain1.pem;
  4. ssl_certificate_key /etc/letsencrypt/archive/event.leecy.org.tw/privkey1.pem;
  5. location / {
  6. index index.html;
  7. root /var/www/fe;
  8. try_files $uri $uri/ /index.html;
  9. }
  10. location /api {
  11. index index.html index.php;
  12. root /var/www/be;
  13. try_files $uri $uri/ index.html /index.php?$query_string;
  14. }
  15. location ~ \.php$ {
  16. root /var/www/html/public;
  17. try_files $uri =404;
  18. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  19. fastcgi_pass php_moderna:9000;
  20. fastcgi_index index.php;
  21. include fastcgi_params;
  22. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  23. fastcgi_param PATH_INFO $fastcgi_path_info;
  24. }
  25. client_max_body_size 64M;
  26. }