Commit Graph

154 Commits

Author SHA1 Message Date
Matt Cowley 040cabec23
Add warning for ssl off directive during Cerbox setup (#431)
Co-authored-by: David Carlson Berg <davidcarlsonberg@users.noreply.github.com>
2023-05-31 21:04:41 +01:00
Kobi Meirson e2a95a5ed4
Move logging configuration to be per-domain (#399)
* chore: per-domain logging

* fix: lint

* fix: revert cdn configuration disabling the access log

* feat: more granular controls for logging

* chore(cr): bump copyright year to 2022

* fix(cr): missing error_log level in the global config

* fix(cr): `is-changed` indicators

* chore(cr): newline at end of file + eslint enforcement

* fix(cr): rows alignment when checkbox applies

* fix(cr): don't use default computed values

* fix: lint

* chore: use new flag names to allow backward compatability

* chore: global `access_log` should always be `off`

* feat: migrate old logging to new

* feat: option to turn on access_log and error_log on redirects

* fix: update copyright year

* fix: missing translation

* fix(cr): migration from global `error_log` being empty

* fix(cr): missing `return`

* fix(cr): account for a `server` dictionary without `domain`

* fix(cr): migrate previous `access_log` and `error_log` paths using the previous behavior

* chore(cr): additional logging comment

* feat(cr): disable error_log per domain

* fix(logging): use default paths

* fix(logging): retain the user values for error_log when toggling the log on/off

* fix(bc): new params shouldn't be overridden
2022-11-14 15:37:44 +00:00
Sascha Moser 63aacfc644
Remove PHP 5.x, add PHP 8.2 (#402)
Co-authored-by: Sascha Moser <saschamoser1994@hotmail.de>
2022-10-31 21:49:59 +00:00
José Manuel Casani Guerra 1afe9384fd
Allow custom proxy host header to be set (#393)
*  feat: proxy header override

* 🐛 fix: missing translations key

* 🐛 fix: missing translations key, again 😅

* Update src/nginxconfig/i18n/en/templates/domain_sections/reverse_proxy.js

Co-authored-by: Matt Cowley <me@mattcowley.co.uk>

* 💡 chore: bump copyright year

* 🎨 refactor: update key to proxyHostHeader and i18n messages

* 🎨 refactor: fix key in template

Co-authored-by: Matt Cowley <me@mattcowley.co.uk>
2022-10-08 19:54:58 +01:00
Raul Soledispa 57592e997a
Use translated string in copy confirmation message (#383)
* Show message in the corresponding language when the user make clic on download button

* Guardar una copia del texto original para usarla cuando la función de copia se haya resuelto con éxito

* Resolving typos in the component and i18n

* Saving the original text of the button to show it when the copy function throws an error exception

Co-authored-by: Raul Soledispa <rsoledispa@technisys.com>
Co-authored-by: Matt Cowley <me@mattcowley.co.uk>
2022-10-02 16:10:43 +01:00
Matt Cowley cd3785061e
Dependency updates (#373)
* Bump Node.js to 16.16.0

* Minor version dependency updates

* Major version dependency updates

* Resolve dependency vulnerability
2022-07-12 12:58:54 +01:00
ChenYuhao 479162576d
Add option to disable caching for HTML content (#366)
* feat: Global performance improve add no-cache for html

* feat: Disable HTML caching

* fix: eslint check

* Clean up
2022-06-14 23:05:09 +01:00
Matt Cowley da783ae467
Allow websockets in default CSP (#345) 2022-04-22 18:38:41 +01:00
Matt Cowley 9f396e0693
Add PHP 8.1 FPM socket option (#346)
* Add PHP 8.1 FPM socket option

* Add i18n strings for PHP 8.1 socket
2022-04-21 12:43:02 +01:00
Matt Cowley ebca910786
Upgrade to Vue 3 (#331)
* Dependency updates

* Upgrade to Vue 3 (WIP)

* Fix reactivity of imported domains (the object gets replaced by a proxy)

* Cleaner access of proxy for domain imports

* Remove upgrade note about reactivity issue

* Fix locale switching

* Remove upgrade note about language issue

* Patch Vue 3 issues with pretty-checkbox-vue

* Remove upgrade note about checkbox issue

* Fix extra slot for checkboxes and radios

* Set checkmark as default for extra slot

* Use patched pretty-checkbox-vue from do-vue

* Fix removing domains

* Switch to main do-vue/do-bulma
2022-03-21 22:51:21 +00:00
Arnaud Lier 28993820eb
fix: cloudflare quiche link (#336)
Fixes #334
2022-02-28 23:25:02 +00:00
Matt Cowley 07b0714837
Suppress logging with NODE_ENV (#332) 2022-02-25 20:00:45 +00:00
Matt (IPv4) Cowley 387a47b014
Dependency updates + full ESM (#327)
* Dependency updates

* Fix eslint issues

* Switch to esm fully

* Fix Jest tests

* Update to node 16, force mini-css-extract-plugin to 1.x

* More dep updates

* Use correct NPM version in Actions

* Fix mini-css-extract-plugin version overrides

* Don't rely on Webpack for available languages
2022-02-04 21:10:20 +00:00
Nadhir 9acceeb924
Adds some permissions to the tar extracted files (#299)
This patch adds permissions after extracting the config tar as suggested by issue #257
2021-09-29 22:25:22 +01:00
Matt (IPv4) Cowley ce74e4c226
Update and fix diffing logic (#289)
* Bump files-diff version to ensure HTML escaping works

* Pass full rendered file path into diff

* Cleaner naming, removing pointless method

* Remove console log
2021-07-27 10:49:51 +01:00
Daniel Walsh 5330055f2b
reuseport is not HTTP/3 only (#283)
* reuseport is not HTTP/3 only

* Forgot to remove these

* Move reuseport to global > https

* Update i18n files

* Only set reuseport once per ip:port pair

* Move reuseport opt outside ssl conditional

* Update copyright headers of touched files

Co-authored-by: MattIPv4 <me@mattcowley.co.uk>
2021-06-28 12:51:45 +01:00
Daniel Walsh fee8fb4189
Implement Permissions-Policy header (#282)
* Implement Permissions-Policy header

* Bump copyright year

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>
2021-06-25 14:46:31 +01:00
Matt (IPv4) Cowley 28b158c748
Improve WordPress CSP warning detection (#273) 2021-05-29 13:17:41 +01:00
Justin Goette 6200e74842
Add NGINX implementation of proxy_set_header Forwarded (#275)
* add NGINX implementation of proxy_set_header Forwarded

* update copyright year

* Treat X-Forwarded-* same

* Comments
2021-05-29 13:12:50 +01:00
Justin Goette b1b989f172
Replace obsoleted X-Frame-Options with frame-ancestors (#272) 2021-05-25 12:37:08 +01:00
Matt (IPv4) Cowley 27d090daeb
Show warning icons in tabs (#260)
* Add unstyled warning to onion tab

* Style the warning icon

* Add warning for http3

* Add warning icon to global security tab

* Surface warnings for domains

* Show warning icon for duplicate domains

* Improve http3 warning string names

* Show warning message/icon for Brotli
2021-05-13 15:28:17 +01:00
Matt (IPv4) Cowley 47371a1216
Fix tab order (#255)
* Export array from domain sections

* Export array from global sections

* Export array from setup sections
2021-04-21 21:46:39 +01:00
Matt (IPv4) Cowley deec5269ad
Hotfix: HTTP/3 strings use domainSections not globalSections (#250) 2021-04-06 00:53:56 +01:00
Matt (IPv4) Cowley 8cd4adbd9c
Tweak sed commands in certbot setup (#240) 2021-03-31 14:14:40 +01:00
Matt (IPv4) Cowley 7a0b6937c6
Assorted cleanup + fixes (#249)
* Move i18n strings to correct files

* Update copyright header in recently modified files

* More consistent line wrapping

* Move modules above events block
2021-03-31 14:12:50 +01:00
Matt (IPv4) Cowley 34ec037d13
Rely on Prism being in window to fix dev error (#248) 2021-03-31 14:11:16 +01:00
J3fftw 8b7cf80733
Added http/3 and port reuse support (#238)
* Added http/3 and port reuse support

* eslint fixes

* updated locale translations

* euhm no one saw this

* Did requested changes

* fixed eslint

* note to self tab is 4 spaces not 2

* Did requested changes

* added coma

* i forgot to ctrl + s

* did requested changes

* removed trailing comma

* it should be reverted now

* :PanSpoonSad: intensifies

* Im bad at this
2021-03-29 20:35:55 +01:00
Atila Silva 1fb756ca77
Set the PHP server config per site (#232)
* Set up the php server per site.

* Backwards compatibility logic for old config URLs.

* Remove php global config tab.

* Fix util import in website.conf.js

* Fix eslint fails.

* Move global php i18n keys to domain

* Remove unnecessary domains verification and set fastcgi_pass in unified mode.

* Convert return statement to logic operator in php_ustream.js

* Move php upstream to outside the server blocks

* Remove unnecessary watcher from php domain section

* Fix upstream config context and conditional append

* Separate backwards compatibility logic.

* Remove unused i18n key from php domain and update copyright of these files

* Replace all dots for underscore in php_upstream helper

* Fix missing space and remove upstream comment from php config.

* Fix selects $refs and watch the enable status for phpServer and phpBackupServer.

* Change copyright year for all modified files.

* Backwards compatibility logic for old config URLs after angularBackwardsCompatibility

* Deep merge old php global config from data url, and add safe disable for phpConfigs

* Move deep merge function to new helper

* Fix missing disable wordpressRules  and convert function declaration to arrows in deep merge helper

* Fix missing css class in php domain-section
2021-02-24 16:20:10 +00:00
Matt (IPv4) Cowley 4a786d2bfd
Add IntersectionObserver to Droplet callout event (#228) 2021-02-19 17:55:43 +00:00
Atila Silva 189a0fc3cf
Prevent access error in phpServerOptions (#221)
* Prevent access error in phpServerOptions

* fix missing semicolon
2021-02-10 16:11:22 +00:00
Matt (IPv4) Cowley bbddeb0f13
Add Droplet & contribution callouts (#216)
* Add the initial Droplet callout

* Add the initial Contribute callout

* Show contribute callout on scroll

* Add close button to contribute callout

* Add/update styling copyright header

* Add analytics events for the callouts

* Tweak how we send analytics events

* Add some z-index to the floating callout

* Fix all the failing tests
2021-02-04 19:31:26 +00:00
Matt (IPv4) Cowley ad63ca0c8b
Support custom PHP server values (#218)
* Add the logic for custom php paths

* Add the i18n strings

* Fix some visual things
2021-02-04 19:29:32 +00:00
Matt (IPv4) Cowley 323cae4c50
Allow setting of custom sizes for types hash (#219) 2021-02-04 19:28:50 +00:00
Matt (IPv4) Cowley 3fdccfa68a
Refactor analytics events (#209)
* Refactor analytics.js

* Update analytics calls in app.vue

* Update analytics calls in presets.vue

* Update analytics calls in tools.vue (and app.vue)

* Update analytics calls in global.vue

* Update analytics calls in domain.vue

* Update analytics calls in setup.vue

* Add list of all events to analytics.js

* Add custom copy to clipboard that emits event

* Emit the events from the components

* Update copyright year in all files touched

* Update analytics calls in download.vue

* Update analytics calls in ssl.vue

* Update analytics calls in certbot.vue

* Update analytics calls in domain.vue

* Update analytics calls in app.vue

* Note down 'Code snippet copied' events
2021-01-18 19:45:19 +00:00
Matt (IPv4) Cowley 0cefd5ddef
Add onion location support (#207)
* Add initial onion tab

* Add some explaining copy

* Add to generator

* Add strings to language packs

* Add external learn more link
2021-01-04 15:41:56 +00:00
Matt (IPv4) Cowley de76ad9a43
Make language packs load async (#204)
* Webpack magic to make language packs async

* Fix jest failing

* Ensure the native language names are always present

* Add loading state for language packs
2020-12-29 16:46:58 +00:00
Matt (IPv4) Cowley 0d920fa9bc
Add Docker tweaks/preset button (#201)
* Docker preset button

* All the strings

* Sorry sass-lint
2020-12-21 15:27:44 +00:00
Matt (IPv4) Cowley 7340e0df74
Add analytics event for langauge selection (#198)
* Add analytics event for language

* Action per language pack

* Missing underscore in action
2020-12-17 15:17:40 +00:00
Matt (IPv4) Cowley ff88e2f322
Allow language selection (#191)
* Add dropdown for language

* Use vue-i18n to translate strings

* Tweak header styling

* Add Chinese languages in

* Typo

* Get language from browser (#193)

* adaptive system language

* Modify the adaptive system language

* Remove dead code

* Delete lang default values

* Move browser language detection to util

* Remove todos

* Fix global PHP dropdown

Co-authored-by: 墨娘 <61287199+moniang@users.noreply.github.com>
2020-12-11 16:54:12 +00:00
墨娘 7d3290d850
Add Chinese translations (cn & tw) (#190)
* - Add Chinese translation
- Fix code style with eslint

* Check and revise

* Added traditional Chinese

* Check and revise

* fix Typo
2020-12-10 12:05:20 +00:00
Sascha Moser bc1bcd7b5b
Add PHP 8.0 socket (#189) 2020-12-01 17:21:50 +00:00
Faiz Azhar 3b00bda80e
Log Cloudflare headers (#116) (#183)
* #116 Log Cloudflare headers

* #116 Log Cloudflare headers

* #116 Log Cloudflare headers

* #163 Fix linting

* Update src/nginxconfig/generators/conf/website.conf.js

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* Update src/nginxconfig/generators/conf/website.conf.js

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* Update src/nginxconfig/generators/conf/website.conf.js

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* Update src/nginxconfig/generators/conf/nginx.conf.js

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* Remove extra div + incorrect if check, revert linebreak  removal

* handle custom log formats as an array

* Update src/nginxconfig/generators/conf/nginx.conf.js

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* remove curly braces, move default log format array definition inside if statement

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>
2020-10-27 18:11:53 +00:00
Alexandre Dias ae322cf2c5
Joomla! conf (#86) (#186)
* Joomla! conf

* fix bug escape character & ;

* remove global and fix presets }

* change requests
2020-10-27 10:40:39 +00:00
William Chang 8bc06372a3
Add security.txt (#181)
* Add security.txt

* Add security.txt

* Update website.conf

* Update security label

* Add eslint linebreak for windows

* Removed backwards compability security.txt encryption

* Update .eslintrc.js

* Update security component

* Change location redirect on security.txt to absolute path

* Moved security.txt config into security.conf
2020-10-22 16:45:11 +01:00
Matt (IPv4) Cowley b48162a3e2
Always use absolute url for query params (#185) 2020-10-21 16:58:08 +01:00
Yasio d9d9a1a92a
Allow request method restriction on domain (#174)
* add limit_except generator to domain

* revert package-lock.json

* change from limit param to if statement in restrict methods

* add response code input

* fix scss
2020-10-15 17:52:41 +01:00
Matt (IPv4) Cowley 2b8fde7917
Bundle & code cleanup (#179)
* Use different YAML solution (391 KB -> 197 KB)

* Update all deps

* Code cleanup
2020-10-14 17:12:16 +01:00
Alex Howes 3aba7956ef
Syntax Highlighting for Docker and Yaml (#177)
* Implement dynamic component for docker and yaml prism components. Also removes chunk limit for lazy-loading.

* Fix eslint with babel-eslint and remove unusued LimitChunkCount plugin.
2020-10-14 15:49:53 +01:00
Alessandro Manno 02e72a7003
Added docker compose generator if docker is enabled (#175)
* Added docker compose generator if docker is enabled

* Fixed version to 3.3

* fixed name in to_yaml.js

* Apply suggestions from code review

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>
2020-10-09 17:52:22 +01:00
Alessandro Manno 150b42c304
Added nginx dockerfile generator (#171)
* Added nginx dockerfile generator

* Applied requested changes

* Update src/nginxconfig/generators/to_conf.js

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* Update src/nginxconfig/generators/to_conf.js

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* Update src/nginxconfig/templates/global_sections/docker.vue

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* Update src/nginxconfig/i18n/en/common.js

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

* Update src/nginxconfig/i18n/en/templates/global_sections/docker.js

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>
2020-10-08 15:43:07 +01:00