Solutions for scripting? #253
Replies: 7 comments 1 reply
-
Glad to hear SWS is supported on TrueNAS Scale via Truecharts. I use TrueNAS Scale at home so I will give it definitely a try. About the scripting solution topic. Regarding your use case. |
Beta Was this translation helpful? Give feedback.
-
Here are some updates after a quick exploration/reasoning of the topic from my side. I see three ways that one can use in general if we want someday to introduce scripting functionality as a feature in SWS.
Again, this is just an exploration to incentivize discussion. So I will continue exploring the topic in detail. |
Beta Was this translation helpful? Give feedback.
-
I appreciate the insight. I've been meaning to test out Caddy once I have the time between work/other projects. It'll take me some time to learn how to set it up as a custom-app with Truecharts. It looks like it would serve the purpose I need though at first glance. I've only been using TrueNAS for a few weeks, but ultimately I'm just trying to retire these Raspberry PI computers with a LAMP stack (hold the mysql) that have been hosting aforementioned static web pages with minimal back-end php for nearly 10 years. SWS on Treucharts has been useful for some of those static pages I must say however due to its convenience and ease of use. |
Beta Was this translation helpful? Give feedback.
-
FYI there is some exploratory stuff going on #254 related to the topic that I'm evaluating, so let's see how it goes. |
Beta Was this translation helpful? Give feedback.
-
i have sympathy for the exploration of Lua-integration, for the sake of Lua. but so far my motivation to use the SWS is that it has so few features and thus a small attack surface. to directly address the original posting: a PHP interpreter is the last i want within my system landscape. i find the addition of dynamic content generation to a product whose adjunct is static counterintuitive and debatable. if such features would be added, i'd appreciate if these were optional build features and that different builds would be published. and now that i'm discussing this aspect: imo even transport encryption isn't necessarily part of a static web server. suitable reverse proxies are available to serve this purpose and allow the segregation of concerns. |
Beta Was this translation helpful? Give feedback.
-
Closing the thread as the PoC is closed too. See #254 (comment). Thanks @funkyfuture for pointing your concerns out. If you have ideas or want to discuss please feel free to do it or join our Discord server. |
Beta Was this translation helpful? Give feedback.
-
Adding a plugin framework would be nice. |
Beta Was this translation helpful? Give feedback.
-
I was pleased to see static-web-server recently get added to the Truecharts app catalog for TrueNAS Scale. It works great and setup was trivial! However it was novice of me to assume it would parse simple php scripts.
Reading further, I cant seem to find something akin to the simplicity of static-web-server that also incorporates php or another common scripting language. My particular application is simple enough; a static webpage with a simple php script in the back end that acts as a kind of sanitizing relay service to a Discord API. It doesn't even output anything to the browser.
Would that kind of functionality ever make it to static-web-server? Or are there other solutions available for users like me?
Beta Was this translation helpful? Give feedback.
All reactions