B4J Question [ABMaterial] Change paths to (js|css|font|ws)

orynkanov

Member
Licensed User
Is it possible to change the location of directories (js | css | font | ws) to others, for example (ABjs | ABcss | ABfont | ABws)?
 

orynkanov

Member
Licensed User
Yes, I have set ABMShared.AppName = "WirenboardStatus"
The selected lines are of interest.
I would like the url to / js to be not from the root, but /APPNAME/js/...js.
I have a site that also already has a js directory in the root and url to it /js/...js.
I am using nginx location for reverse proxying to my application.
NGINX:
location ~ /(WirenboardStatus|css|js|font) {
    ...
    proxy_pass http://127.0.0.1:51043;
}
.
The location rule also applies to the url /js/... of the site and the application, since they both start from the root.
If it cannot be changed, then I think this is an important flaw.
1637720645757.jpeg
 
Upvote 0

alwaysbusy

Expert
Licensed User
Longtime User
No idea how you implemented your nginx script, but I know our network guy uses HAProxy and we run several WebApps on the same server without any issues in a folder structure like this, each with their own www (so js/css/font/...) folders.

/root/myapp1/myapp1.jar ON PORT 51042
/root/myapp1/copymewithjar.needs
/root/myapp1/www

/root/myapp2/myapp2.jar ON PORT 51043
/root/myapp2/copymewithjar.needs
/root/myapp2/www

/root/myapp3/myapp3.jar ON PORT 51044
/root/myapp3/copymewithjar.needs
/root/myapp3/www

Alwaysbusy
 
Upvote 1
Top