Skip to content

feat: add PrestaShop support and preset - #513

Open
matbrgz wants to merge 1 commit into
digitalocean:masterfrom
matbrgz:feat/prestashop-support
Open

matbrgz wants to merge 1 commit into
digitalocean:masterfrom
matbrgz:feat/prestashop-support

Conversation

@matbrgz

@matbrgz matbrgz commented Sep 24, 2026

Copy link
Copy Markdown

Description

Closes #268.

This PR adds first-class support for PrestaShop to nginxconfig.io, including:

  1. PrestaShop NGINX Configuration Generator (src/nginxconfig/generators/conf/prestashop.conf.js):
    • Official image rewrite hierarchy (^/(\d)...).
    • Web service API dispatcher route (/api/... -> /webservice/dispatcher.php).
    • Protection of sensitive directories (app, bin, cache, config, vendor, etc.) and file extensions (.log, .tpl, .twig, .sass, .yml).
    • Prevention of direct PHP file execution in /img/ and /upload/.
    • Dedicated administration location block (/admin-dev/).
  2. Domain PHP Section: Added prestashopRules toggle option.
  3. Domain Presets: Added the PrestaShop preset button under the Presets section.
  4. Localization (i18n): Full localization strings added across all 11 supported language packs (de, en, es, fa, fr, ja, pl, pt-br, ru, zh-cn, zh-tw).
  5. Backwards Compatibility: Added prestashop mapping in angular_backwards_compatibility.js.

Verification

  • Tested with npm run test:i18n-packs (all 11 language packs verified with no missing/unexpected keys).
  • Tested with npm run test:jest (all unit tests passing).
  • Tested with prettier and eslint via lint-staged.

Add configuration generator, preset, PHP section toggle, and i18n support for PrestaShop. Closes digitalocean#268.

Co-Authored-By: Antigravity <noreply@google.com>
@matbrgz matbrgz mentioned this pull request Sep 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prestashop

1 participant