Commit Graph

54 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
Mikhail Solovev
446775978f PHP-FPM Option w/o version (#166) 2020-09-15 11:06:45 +01:00
MattIPv4
a9cb3e54f6 Analytics for global reset/remove 2020-07-14 16:41:55 +01:00
MattIPv4
97ccb98ef8 Provide an option for LE cert dir (fixes #156) 2020-06-21 15:52:07 +01:00
MattIPv4
13b5220b93 Add global reverse proxy timeout settings (fixes #74) 2020-06-11 15:49:30 +01:00
MattIPv4
e4f219a286 Don't use duplicated computed value for nginx dir, watch initial value 2020-06-11 15:49:25 +01:00
MattIPv4
5502c8c6bb Fix updating URL when no query params 2020-06-09 16:54:12 +01:00
Ahmed
c68ff23e3e support php7.4-fpm (#149) 2020-06-08 16:19:26 +01:00
MattIPv4
a9b69fd6f5 Centralise query string generation & fallback to hash if too long 2020-06-05 17:21:01 +01:00
MattIPv4
7444fa6f77 MIT license 2020-06-04 14:44:30 +01:00
MattIPv4
1d2362023c Add optional quad9 & verisign DNS resolvers (cc #80) 2020-06-03 17:20:03 +01:00
MattIPv4
62178fd7d2 Preserve untouched example domains from query params 2020-06-03 16:44:49 +01:00
MattIPv4
d4c381a9ce Add v6 options for OCSP DNS Resolvers (fixes #97) 2020-06-02 22:05:51 +01:00
MattIPv4
9465e8a2fb Add warning for wordpress CSP unsafe-eval (fixes #144) 2020-06-02 17:27:48 +01:00
MattIPv4
707ff8238a Move i18n strings to be centralised 2020-06-02 16:51:28 +01:00
MattIPv4
84f3a296d8 Move all global section strings to i18n 2020-06-01 20:39:46 +01:00
MattIPv4
19cac71df0 Add in all the missing copyright headers 2020-05-28 16:50:03 +01:00
MattIPv4
8ee4a8eb88 Add download & copy buttons 2020-05-07 17:31:40 +01:00
MattIPv4
2809d5fa7a Add SSL, certbot & go live setup steps 2020-05-07 17:14:04 +01:00
MattIPv4
6d918739f2 Add confirmation modal for all reset/remove actions in global tools section 2020-05-06 17:05:02 +01:00
MattIPv4
f2c0878cda Add writing of query params 2020-05-05 16:29:13 +01:00
MattIPv4
e7e9cbcfa2 Add global tools section & export data generator 2020-05-04 20:55:23 +01:00
MattIPv4
431cbf53e2 Add nginx global section 2020-05-04 17:16:25 +01:00
MattIPv4
8e9a89b107 Add global logging section 2020-05-01 21:07:23 +01:00
MattIPv4
306f057ebc Add global performance section 2020-05-01 20:55:58 +01:00
MattIPv4
b0d0df91c5 Add python global section 2020-05-01 20:48:14 +01:00