59 Commits

Author SHA1 Message Date
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
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
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
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
Bernhard Kau
89e847b62f
Load modules-enabled/* in main conf (#244)
Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>

Co-authored-by: Bernhard Kau <bernhard@kau-boys.de>
Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>
2021-03-29 16:21:10 +01:00
Bernhard Kau
7706d13420
Remove WordPress comments from deny rule (#241)
Co-authored-by: Bernhard Kau <bernhard@kau-boys.de>
2021-03-26 15:06:51 +00: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
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
Michael Krickl
5f8931c231
Improve Connection header for WebSocket reverse proxy (#217)
* Improve Connection header for WebSocket reverse proxy

reference: https://nginx.org/en/docs/http/websocket.html

* Move map to http context
2021-02-02 21:20:46 +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
d58b6e08d9
Remove extra quotes from website HSTS (#196) 2020-12-14 15:52:41 +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
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
ec86d8819b
Fix wordpress rules, removing incorrect CVE fix (#184) 2020-10-21 16:55:06 +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
RytoEX
5daf54ebde
Fix HTTP to HTTPS redirect without subdomains (#180) 2020-10-15 17:29:16 +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
40aed64034
Fix HTTP to HTTPS redirects for letsencrypt and subdomains (#178)
* Fix HTTP to HTTPS redirects for letsencrypt and subdomains

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

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

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>
2020-10-13 09:49:23 +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
Niklas Dahmen
4306666e82
Only include pid when set (#173)
* Now pid is only showing up inside of the nginx config whenever it is set.

Signed-off-by: Niklas Dahmen <n@ni-da.de>

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

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>
2020-10-08 15:46:08 +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
Alessandro Manno
956e504d63
Typo (Drupal -> Magento) (#170) 2020-09-26 11:27:28 +01:00
MattIPv4
15b2906128 Add missing server_name rule to HTTP redirect block (fixes #160) 2020-07-23 16:40:51 +01:00
MattIPv4
97ccb98ef8 Provide an option for LE cert dir (fixes #156) 2020-06-21 15:52:07 +01:00
MattIPv4
0f4c53b5ac Fix PHP upstream with no backup (fixes #155) 2020-06-21 15:40:27 +01:00
MattIPv4
88a4929d36 Fix period escapes 2020-06-16 16:56:28 +01:00
Alexandre Dias
73c9bd8174
Add more rules to Drupal conf (#146)
* add more rules - Drupal

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

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

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

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

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

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

* fix rewrite when we can use try_files

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

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

Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>
2020-06-16 16:52:51 +01:00
MattIPv4
13b5220b93 Add global reverse proxy timeout settings (fixes #74) 2020-06-11 15:49:30 +01:00
MattIPv4
16a860f5ca Move generic PHP location block after specific rules (fixes #112) 2020-06-11 14:56:05 +01:00
MattIPv4
6aa05d6cd1 Missing 'location' in WordPress (fixes #152) 2020-06-11 14:38:41 +01:00
MattIPv4
f612c5d0ed Include LE in main server block if not forcing HTTPS 2020-06-10 21:07:26 +01:00
MattIPv4
a9b69fd6f5 Centralise query string generation & fallback to hash if too long 2020-06-05 17:21:01 +01:00
MattIPv4
bc04209423 Conf files should be treated as a dict, file names are unique 2020-06-04 14:58:41 +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
d4c381a9ce Add v6 options for OCSP DNS Resolvers (fixes #97) 2020-06-02 22:05:51 +01:00
MattIPv4
8921cd711f Add rule for wordpress seo plugin (fixes #132) 2020-06-02 17:35:32 +01:00
MattIPv4
594e307d2a Match current behaviour for unified + wordpress 2020-06-02 17:08:28 +01:00
MattIPv4
19cac71df0 Add in all the missing copyright headers 2020-05-28 16:50:03 +01:00
MattIPv4
17261e8bbd Conf diffing?! 2020-05-22 21:17:01 +01:00
MattIPv4
7276767102 Fix whitespace cleanup in confs 2020-05-21 15:42:02 +01:00
MattIPv4
7c12dfc0c2 All the files! 2020-05-20 21:03:03 +01:00
MattIPv4
88d66f415c Start showing more config files! 2020-05-20 18:59:33 +01:00
MattIPv4
7fa39d4bcc Single file config + formatting fixes! 2020-05-20 17:41:24 +01:00
MattIPv4
6a70c53107 Move confs into own dir 2020-05-20 17:22:21 +01:00