SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.01k stars 1.23k forks source link

[Package Request] haproxy for SRM #5005

Open publicarray opened 2 years ago

publicarray commented 2 years ago

Jamyz

Hi! something like Haproxy. Before i watch this page https://synopackages.wordpress.com/2017/04/23/synocommunity-packages-for-srm-1-1/ but the links are deads.

https://discord.com/channels/732558169863225384/905064261984845836/920983852112019456

hgy59 commented 2 years ago

The current haproxy package has an ExtJS config gui that is only working on DSM 5. And this gui works with python2 only, as pyextdirect by @Diaoul was never ported to Python 3.x.

Anyway we need a new approach for packages that need a simple configuration UI. We might benefit from the work in #4568. As Synology might drop installation wizard support, such config UI will get mandatory.

publicarray commented 2 years ago

AFAIK The SRM is based on DSM5. So it might be usable for that 🤷. Thanks, yea this package needs a rewrite unless we can migrate to Synology's login portal's reverse proxy. It seems to do the job.

hgy59 commented 2 years ago

IMHO SRM is based on DSM 6.

publicarray commented 2 years ago

It reports itself as 5.2 but who knows what they have done on that platform. It may not work due to other changes.

https://github.com/publicarray/spksrc/blob/79b15bc8f95129b7dcd12cce6d55068ee59a6249/spk/dnscrypt-proxy/src/service-setup.sh#L12

hgy59 commented 2 years ago

@publicarray thanks for clearing up, i never had access to a synology router. I always thought that versions are SRM 1.0, 1.1 or 1.2. And we had problems with REQUIRED_DSM variable as SRM versions are always lower than DSM versions.

publicarray commented 2 years ago

@hgy59 Yea the confusing thing is that the SRM is 1.x, but he SYNOPKG_DSMVERSION* variables report 5.x This caught me off guard when I wanted to differentiate between SRM and DSM in the script. This suggests they used DSM5 as a base to build the RSM