From 19cac71df07d8c5b0425c5ee31402c68ebf7870a Mon Sep 17 00:00:00 2001 From: MattIPv4 Date: Thu, 28 May 2020 16:50:03 +0100 Subject: [PATCH] Add in all the missing copyright headers --- src/nginxconfig/build/template.js | 18 ++++++++++++++++++ src/nginxconfig/generators/conf/drupal.conf.js | 16 ++++++++++++++++ .../generators/conf/general.conf.js | 16 ++++++++++++++++ .../generators/conf/letsencrypt.conf.js | 16 ++++++++++++++++ .../generators/conf/magento.conf.js | 16 ++++++++++++++++ src/nginxconfig/generators/conf/nginx.conf.js | 16 ++++++++++++++++ .../generators/conf/php_fastcgi.conf.js | 16 ++++++++++++++++ src/nginxconfig/generators/conf/proxy.conf.js | 16 ++++++++++++++++ .../generators/conf/python_uwsgi.conf.js | 16 ++++++++++++++++ .../generators/conf/security.conf.js | 16 ++++++++++++++++ .../generators/conf/website.conf.js | 16 ++++++++++++++++ .../generators/conf/wordpress.conf.js | 16 ++++++++++++++++ src/nginxconfig/generators/index.js | 16 ++++++++++++++++ src/nginxconfig/generators/to_conf.js | 16 ++++++++++++++++ src/nginxconfig/i18n/en/index.js | 16 ++++++++++++++++ src/nginxconfig/i18n/en/templates/app.js | 16 ++++++++++++++++ src/nginxconfig/i18n/en/templates/index.js | 16 ++++++++++++++++ src/nginxconfig/i18n/index.js | 16 ++++++++++++++++ .../templates/domain_sections/https.vue | 16 ++++++++++++++++ .../templates/domain_sections/index.js | 16 ++++++++++++++++ .../templates/domain_sections/logging.vue | 16 ++++++++++++++++ .../templates/domain_sections/php.vue | 16 ++++++++++++++++ .../templates/domain_sections/presets.vue | 16 ++++++++++++++++ .../templates/domain_sections/python.vue | 16 ++++++++++++++++ .../domain_sections/reverse_proxy.vue | 16 ++++++++++++++++ .../templates/domain_sections/routing.vue | 16 ++++++++++++++++ .../templates/domain_sections/server.vue | 16 ++++++++++++++++ .../templates/global_sections/https.vue | 16 ++++++++++++++++ .../templates/global_sections/index.js | 16 ++++++++++++++++ .../templates/global_sections/logging.vue | 16 ++++++++++++++++ .../templates/global_sections/nginx.vue | 16 ++++++++++++++++ .../templates/global_sections/performance.vue | 16 ++++++++++++++++ .../templates/global_sections/php.vue | 16 ++++++++++++++++ .../templates/global_sections/python.vue | 16 ++++++++++++++++ .../templates/global_sections/security.vue | 16 ++++++++++++++++ .../templates/global_sections/tools.vue | 16 ++++++++++++++++ src/nginxconfig/templates/prism/bash.vue | 16 ++++++++++++++++ src/nginxconfig/templates/prism/nginx.vue | 16 ++++++++++++++++ .../templates/setup_sections/certbot.vue | 16 ++++++++++++++++ .../templates/setup_sections/download.vue | 16 ++++++++++++++++ .../templates/setup_sections/go_live.vue | 16 ++++++++++++++++ .../templates/setup_sections/index.js | 16 ++++++++++++++++ .../templates/setup_sections/ssl.vue | 16 ++++++++++++++++ .../util/backwards_compatibility.js | 16 ++++++++++++++++ src/nginxconfig/util/common_hsts.js | 16 ++++++++++++++++ src/nginxconfig/util/computed_from_defaults.js | 16 ++++++++++++++++ .../util/delegated_from_defaults.js | 16 ++++++++++++++++ src/nginxconfig/util/export_data.js | 16 ++++++++++++++++ src/nginxconfig/util/get_log_paths.js | 16 ++++++++++++++++ src/nginxconfig/util/get_ssl_certificate.js | 16 ++++++++++++++++ src/nginxconfig/util/import_data.js | 16 ++++++++++++++++ src/nginxconfig/util/is_changed.js | 16 ++++++++++++++++ src/nginxconfig/util/is_object.js | 16 ++++++++++++++++ src/nginxconfig/util/prism_bundle.js | 16 ++++++++++++++++ src/nginxconfig/util/ssl_profiles.js | 17 +++++++++++++++++ src/nginxconfig/util/types_extensions.js | 16 ++++++++++++++++ vue.config.js | 16 ++++++++++++++++ 57 files changed, 915 insertions(+) diff --git a/src/nginxconfig/build/template.js b/src/nginxconfig/build/template.js index 955470d..26259fd 100644 --- a/src/nginxconfig/build/template.js +++ b/src/nginxconfig/build/template.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + const path = require('path'); const fs = require('fs'); @@ -5,9 +21,11 @@ const fs = require('fs'); const main = () => { const buildDir = path.join(__dirname, '..', '..', '..', 'build'); let template = fs.readFileSync(path.join(buildDir, 'base.html'), 'utf8'); + template = template.replace('', 'NGINXConfig | '); template = template.replace('', ''); template = template.replace('', '
'); + fs.writeFileSync(path.join(buildDir, 'index.html'), template); }; diff --git a/src/nginxconfig/generators/conf/drupal.conf.js b/src/nginxconfig/generators/conf/drupal.conf.js index ad494e7..84d4b06 100644 --- a/src/nginxconfig/generators/conf/drupal.conf.js +++ b/src/nginxconfig/generators/conf/drupal.conf.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + export default global => { const config = {}; diff --git a/src/nginxconfig/generators/conf/general.conf.js b/src/nginxconfig/generators/conf/general.conf.js index ad6c9c1..12ae414 100644 --- a/src/nginxconfig/generators/conf/general.conf.js +++ b/src/nginxconfig/generators/conf/general.conf.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { gzipTypes, extensions } from '../../util/types_extensions'; export default (domains, global) => { diff --git a/src/nginxconfig/generators/conf/letsencrypt.conf.js b/src/nginxconfig/generators/conf/letsencrypt.conf.js index 1739f35..078b90e 100644 --- a/src/nginxconfig/generators/conf/letsencrypt.conf.js +++ b/src/nginxconfig/generators/conf/letsencrypt.conf.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + export default global => { const config = {}; diff --git a/src/nginxconfig/generators/conf/magento.conf.js b/src/nginxconfig/generators/conf/magento.conf.js index 4ced066..9e6013a 100644 --- a/src/nginxconfig/generators/conf/magento.conf.js +++ b/src/nginxconfig/generators/conf/magento.conf.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + export default () => { const config = {}; diff --git a/src/nginxconfig/generators/conf/nginx.conf.js b/src/nginxconfig/generators/conf/nginx.conf.js index 696f253..cb250b7 100644 --- a/src/nginxconfig/generators/conf/nginx.conf.js +++ b/src/nginxconfig/generators/conf/nginx.conf.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import qs from 'qs'; import sslProfiles from '../../util/ssl_profiles'; import exportData from '../../util/export_data'; diff --git a/src/nginxconfig/generators/conf/php_fastcgi.conf.js b/src/nginxconfig/generators/conf/php_fastcgi.conf.js index 1f2cfec..d6b3a4c 100644 --- a/src/nginxconfig/generators/conf/php_fastcgi.conf.js +++ b/src/nginxconfig/generators/conf/php_fastcgi.conf.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + export default (domains, global) => { const legacyRouting = domains.some(d => d.routing.legacyPhpRouting.computed); const config = {}; diff --git a/src/nginxconfig/generators/conf/proxy.conf.js b/src/nginxconfig/generators/conf/proxy.conf.js index bff4e65..1c40ed9 100644 --- a/src/nginxconfig/generators/conf/proxy.conf.js +++ b/src/nginxconfig/generators/conf/proxy.conf.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + export default () => { const config = {}; diff --git a/src/nginxconfig/generators/conf/python_uwsgi.conf.js b/src/nginxconfig/generators/conf/python_uwsgi.conf.js index 728a083..7543a68 100644 --- a/src/nginxconfig/generators/conf/python_uwsgi.conf.js +++ b/src/nginxconfig/generators/conf/python_uwsgi.conf.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + export default global => { const config = {}; diff --git a/src/nginxconfig/generators/conf/security.conf.js b/src/nginxconfig/generators/conf/security.conf.js index b08795a..34babd6 100644 --- a/src/nginxconfig/generators/conf/security.conf.js +++ b/src/nginxconfig/generators/conf/security.conf.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import commonHsts from '../../util/common_hsts'; export default (domains, global) => { diff --git a/src/nginxconfig/generators/conf/website.conf.js b/src/nginxconfig/generators/conf/website.conf.js index 04e04dc..43a7b05 100644 --- a/src/nginxconfig/generators/conf/website.conf.js +++ b/src/nginxconfig/generators/conf/website.conf.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { getSslCertificate, getSslCertificateKey } from '../../util/get_ssl_certificate'; import { getAccessLogDomainPath, getErrorLogDomainPath } from '../../util/get_log_paths'; import { extensions, gzipTypes } from '../../util/types_extensions'; diff --git a/src/nginxconfig/generators/conf/wordpress.conf.js b/src/nginxconfig/generators/conf/wordpress.conf.js index 5a9c6c0..3e3ab5b 100644 --- a/src/nginxconfig/generators/conf/wordpress.conf.js +++ b/src/nginxconfig/generators/conf/wordpress.conf.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + export default global => { const config = {}; diff --git a/src/nginxconfig/generators/index.js b/src/nginxconfig/generators/index.js index 79df762..38636f0 100644 --- a/src/nginxconfig/generators/index.js +++ b/src/nginxconfig/generators/index.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import toConf from './to_conf'; import nginxConf from './conf/nginx.conf'; import websiteConf from './conf/website.conf'; diff --git a/src/nginxconfig/generators/to_conf.js b/src/nginxconfig/generators/to_conf.js index e5bdb10..d2c1bb9 100644 --- a/src/nginxconfig/generators/to_conf.js +++ b/src/nginxconfig/generators/to_conf.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import isObject from '../util/is_object'; const isBlock = item => { diff --git a/src/nginxconfig/i18n/en/index.js b/src/nginxconfig/i18n/en/index.js index b28e9d2..8d260b9 100644 --- a/src/nginxconfig/i18n/en/index.js +++ b/src/nginxconfig/i18n/en/index.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import templates from './templates'; export default { templates }; diff --git a/src/nginxconfig/i18n/en/templates/app.js b/src/nginxconfig/i18n/en/templates/app.js index b9eb4e7..13090ea 100644 --- a/src/nginxconfig/i18n/en/templates/app.js +++ b/src/nginxconfig/i18n/en/templates/app.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + export default { title: 'NGINXConfig', description: 'The easiest way to configure a performant, secure, and stable NGINX server.', diff --git a/src/nginxconfig/i18n/en/templates/index.js b/src/nginxconfig/i18n/en/templates/index.js index 71298f7..e83b1e1 100644 --- a/src/nginxconfig/i18n/en/templates/index.js +++ b/src/nginxconfig/i18n/en/templates/index.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import app from './app'; export default { app }; diff --git a/src/nginxconfig/i18n/index.js b/src/nginxconfig/i18n/index.js index f7d82c8..3654fc7 100644 --- a/src/nginxconfig/i18n/index.js +++ b/src/nginxconfig/i18n/index.js @@ -1,3 +1,19 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import en from './en'; const lang = 'en'; diff --git a/src/nginxconfig/templates/domain_sections/https.vue b/src/nginxconfig/templates/domain_sections/https.vue index f46ca6d..3025280 100644 --- a/src/nginxconfig/templates/domain_sections/https.vue +++ b/src/nginxconfig/templates/domain_sections/https.vue @@ -1,3 +1,19 @@ + +