Skip to content

Commit

Permalink
Add filter to open json files in content explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Kyas authored and mrueg committed Jan 22, 2025
1 parent f3e4101 commit a753a42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion teddycloud/rootfs/etc/nginx/servers/ingress.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ server {
sub_filter 'apiPostTeddyCloudFormDataRaw("/api/' 'apiPostTeddyCloudFormDataRaw("$http_x_ingress_path/api/';
sub_filter 'apiPostTeddyCloudFormDataRaw(`/api/' 'apiPostTeddyCloudFormDataRaw(`$http_x_ingress_path/api/';
sub_filter 'apiPostTeddyCloudRaw(`/content/' 'apiPostTeddyCloudRaw(`$http_x_ingress_path/content/';
sub_filter 'loadPath:"/web/' 'loadPath:"$http_x_ingress_path/web/';
sub_filter 'loadPath:"/web/' 'loadPath:"$http_x_ingress_path/web/';
sub_filter '="/web/assets/' '="$http_x_ingress_path/web/assets/';
sub_filter 'REACT_APP_TEDDYCLOUD_WEB_BASE:"/web"' 'REACT_APP_TEDDYCLOUD_WEB_BASE:"$http_x_ingress_path/web"';
sub_filter 'PUBLIC_URL:"/web"' 'PUBLIC_URL:"$http_x_ingress_path/web"';
Expand All @@ -56,6 +56,7 @@ server {
sub_filter "concat('', '/api" "concat('', '$http_x_ingress_path/api";
sub_filter 'return("/web/' 'return("$http_x_ingress_path/web/';
sub_filter 'encodeURI("/content' 'encodeURI("$http_x_ingress_path/content';
sub_filter '"library"?"/library":"/content"' '"library"?"$http_x_ingress_path/library":"$http_x_ingress_path/content"';
sub_filter '"/img_unknown.png"' '"$http_x_ingress_path/img_unknown.png"';
sub_filter 'p.tonieInfo.picture' "[p.tonieInfo.picture.startsWith('http')?'':'$http_x_ingress_path', p.tonieInfo.picture].join('')";
sub_filter '""+p.audioUrl' '"$http_x_ingress_path"+p.audioUrl';
Expand Down

0 comments on commit a753a42

Please sign in to comment.