Skip to content

Commit

Permalink
feat(docs): reverse proxy configuation
Browse files Browse the repository at this point in the history
close #493
  • Loading branch information
tchiotludo committed Sep 11, 2023
1 parent 95281fe commit e3b0ac8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions content/docs/09.administrator-guide/02.deployment/05.restack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: Kestra behind a reverse proxy
---

If you prefer to host Kestra behind a reverse proxy, you should take care that Kestra use [https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events](Server Send Event (SSE)) to display execution in real-time.

On some reverse proxy like Nginx, you need to disable buffering to enable real-time update.

---

## Nginx

A working configuration is:
```nginx
location / {
proxy_pass http://localhost:<kestra_port>;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 600s;
proxy_redirect off;
proxy_set_header Host $http_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-Protocol $scheme;
# Needed for SSE
proxy_buffering off;
proxy_cache off;
}
```

1 comment on commit e3b0ac8

@vercel
Copy link

@vercel vercel bot commented on e3b0ac8 Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kestra-io – ./

kestra-io-kestra.vercel.app
kestra-io.vercel.app
kestra-io-git-main-kestra.vercel.app

Please sign in to comment.