* feat(website): add custom HTTPS redirect port option
Allow HTTP-to-HTTPS redirects to omit the local HTTPS port for Cloudflare or other reverse-proxy deployments terminating at 443. Apply the setting to existing websites and update HTTPS settings labels.
(cherry picked from commit 27c1468405)
* feat(website): configure HTTPS redirect port per site
Add a per-site HTTPS redirect port policy next to the HTTP-to-HTTPS option. Sites can inherit the global setting, use the Nginx HTTPS port, or force standard port 443, defaulting existing sites to inheritance.
This supports reverse-proxied sites that need 443 and directly exposed sites that need 8443 on the same host. Global changes now update only inheriting sites, so adjusting one website does not rewrite other sites' redirect rules.
Hide the global custom-port switch when Nginx uses standard port 443.
(cherry picked from commit 301dc15d9d)
* Revert "feat(website): configure HTTPS redirect port per site"
This reverts commit 83d94f6cf9.
The per-site database strategy will be replaced by a config-driven design.
* feat(website): make HTTPS redirect port config-driven
Read the site redirect port from managed nginx rules instead of storing per-site policy in the database. Only update rules matching the old global port, preserve manual configurations, and avoid rewriting sites when the global redirect setting is unchanged.
---------
Co-authored-by: BOX <no@mail.com>
* feat: Enhance browser cache management and localization support
- Updated browser cache handling in WebsiteService to include a 'noModify' option.
- Introduced new method AddBroswerNoCache in Location to manage no-cache directives.
- Added localization for 'noModify' in multiple languages.
- Updated frontend to support the new browser cache options in the proxy configuration.
* fix: Update cache display logic in proxy configuration
- Adjusted the rendering of cache tags in the proxy configuration to conditionally display based on cache time values.
- Improved user interface by adding margin classes for better spacing between cache tags.
* feat: Enhance caching options for proxy configuration
* fix: typo
* feat: Update caching and directive handling in proxy configuration
* feat: Update default cache time and unit to improve caching configuration
* feat: Implement RemoveCorsOption method to streamline CORS directive removal
* feat: Enhance cache display and initialization in proxy configuration
* refactor: Clean up AddBrowserCache and RemoveCache methods by removing commented-out code