Skip to content

Deployment and Maintenance / Virtual Directory Deployment

Added in version 6.0.3

DataFlux Func supports deployment via a virtual directory.

That is, through configurations like Nginx, you can access DataFlux Func after deployment using {domain}/{virtual directory}.

Configuration Reference

Assume the virtual directory name is func, meaning it is accessed via http://{domain}/func, then the configuration would be as follows:

Nginx Configuration
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
server {
  listen 80;
  location /func/ {
      proxy_pass http://127.0.0.1:8088/;
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $scheme;

      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection 'upgrade';
  }
}