default.conf.template 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Please do not directly edit this file. Instead, modify the .env variables related to NGINX configuration.
  2. server {
  3. listen ${NGINX_PORT};
  4. server_name ${NGINX_SERVER_NAME};
  5. location /console/api {
  6. proxy_pass http://api:5001;
  7. include proxy.conf;
  8. }
  9. location /api {
  10. proxy_pass http://api:5001;
  11. include proxy.conf;
  12. }
  13. location /v1 {
  14. proxy_pass http://api:5001;
  15. include proxy.conf;
  16. }
  17. location /files {
  18. proxy_pass http://api:5001;
  19. include proxy.conf;
  20. }
  21. location /explore {
  22. proxy_pass http://web:3000;
  23. include proxy.conf;
  24. }
  25. location /e/ {
  26. proxy_pass http://plugin_daemon:5002;
  27. proxy_set_header Dify-Hook-Url $scheme://$host$request_uri;
  28. include proxy.conf;
  29. }
  30. location / {
  31. proxy_pass http://web:3000;
  32. include proxy.conf;
  33. }
  34. # placeholder for acme challenge location
  35. ${ACME_CHALLENGE_LOCATION}
  36. # placeholder for https config defined in https.conf.template
  37. ${HTTPS_CONFIG}
  38. }