From f01b48bfde49072c79e67d5b40bdace88c0122f1 Mon Sep 17 00:00:00 2001 From: lapineige Date: Fri, 26 May 2023 19:12:00 +0200 Subject: [PATCH] implement reverse proxy https://github.com/YunoHost-Apps/13ft_ynh/issues/2#issuecomment-1564634875 --- conf/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 9782b91..af84e46 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -3,6 +3,11 @@ location __PATH__/ { # Path to source alias __FINALPATH__/; + + # static files + proxy_pass http://localhost:5000; + proxy_set_header Host $http_host; + more_set_headers "X-Frame-Options: ALLOWALL"; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc;