mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
use-git yunohost-admin: automagically add custom perm for /sockjs-node / vuejs hotreload
This commit is contained in:
parent
ee4d6b3cac
commit
a385942d8a
1 changed files with 22 additions and 0 deletions
22
ynh-dev
22
ynh-dev
|
@ -349,6 +349,28 @@ location /sockjs-node {
|
|||
}
|
||||
EOF
|
||||
|
||||
|
||||
# If ssowat's conf persistent ~empty, allow ourselves to add the rule for /sockjs-node for hot-reload
|
||||
if [ ! -e /etc/ssowat/conf.json.persistent ] || [ -z "$(cat /etc/ssowat/conf.json.persistent | tr -d '{} \n')" ]
|
||||
then
|
||||
cat <<EOF >/etc/ssowat/conf.json.persistent
|
||||
{
|
||||
"permissions": {
|
||||
"webadminhotreload": {
|
||||
"auth_header": false,
|
||||
"label": "Core permissions - skipped",
|
||||
"public": true,
|
||||
"show_tile": false,
|
||||
"uris": [
|
||||
"re:^[^/]*/sockjs-node",
|
||||
],
|
||||
"users": []
|
||||
}
|
||||
}
|
||||
}
|
||||
EOF
|
||||
fi
|
||||
|
||||
systemctl reload nginx
|
||||
cd /ynh-dev/yunohost-admin/app/
|
||||
npm run serve
|
||||
|
|
Loading…
Add table
Reference in a new issue