dolphinscheduler.conf 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. server {
  18. listen 8888;
  19. server_name localhost;
  20. #charset koi8-r;
  21. #access_log /var/log/nginx/host.access.log main;
  22. location / {
  23. root /opt/dolphinscheduler/ui;
  24. index index.html index.html;
  25. }
  26. location /dolphinscheduler {
  27. proxy_pass http://FRONTEND_API_SERVER_HOST:FRONTEND_API_SERVER_PORT;
  28. proxy_set_header Host $host;
  29. proxy_set_header X-Real-IP $remote_addr;
  30. proxy_set_header x_real_ipP $remote_addr;
  31. proxy_set_header remote_addr $remote_addr;
  32. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  33. proxy_http_version 1.1;
  34. proxy_connect_timeout 300s;
  35. proxy_read_timeout 300s;
  36. proxy_send_timeout 300s;
  37. proxy_set_header Upgrade $http_upgrade;
  38. proxy_set_header Connection "upgrade";
  39. }
  40. #error_page 404 /404.html;
  41. # redirect server error pages to the static page /50x.html
  42. #
  43. error_page 500 502 503 504 /50x.html;
  44. location = /50x.html {
  45. root /usr/share/nginx/html;
  46. }
  47. }