File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,6 @@ nginx_stream_build_config() {
55
55
56
56
echo " -----> Configuring NGINX Stream plugin"
57
57
sigil " ${SIGIL_PARAMS[@]} " | cat -s > " $STREAM_CONF "
58
- mv " $STREAM_CONF " " $DOKKU_ROOT / $APP /nginx-stream.conf"
58
+ mv " $STREAM_CONF " " /etc /nginx/app -stream/ $APP .conf"
59
59
validate_nginx && restart_nginx > /dev/null
60
60
}
Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ set -eo pipefail
4
4
[[ $DOKKU_TRACE ]] && set -x
5
5
6
6
plugin-install () {
7
- NGINX_CONF=" /etc/nginx/nginx.conf"
7
+ local NGINX_STREAM_SUDOERS_FILE=" /etc/sudoers.d/dokku-nginx-stream"
8
+ local NGINX_CONF=" /etc/nginx/nginx.conf"
9
+ mkdir -p " /etc/nginx/app-stream"
8
10
cat >> $NGINX_CONF << EOF
9
11
stream {
10
- include /home/dokku/*/ nginx-stream.conf;
12
+ include /etc/ nginx/app -stream/* .conf;
11
13
}
12
14
EOF
13
15
}
14
16
15
- plugin-install " $@ "
17
+ plugin-install " $@ "
You can’t perform that action at this time.
0 commit comments