-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): reverse proxy configuation
close #493
- Loading branch information
1 parent
95281fe
commit e3b0ac8
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
31 changes: 31 additions & 0 deletions
31
content/docs/09.administrator-guide/02.deployment/05.restack.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
``` |
e3b0ac8
There was a problem hiding this comment.
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