diff --git a/.editorconfig b/.editorconfig index e2139a6..0ffd089 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2016-2025 Friedrich von Never +# +# SPDX-License-Identifier: MIT + root = true [*] diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3c7a1b5..b24358c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2025 Friedrich von Never +# +# SPDX-License-Identifier: MIT + on: push: branches: @@ -19,3 +23,12 @@ jobs: - name: Verify encoding shell: pwsh run: Install-Module VerifyEncoding -Repository PSGallery -RequiredVersion 2.2.0 -Force && Test-Encoding + + licenses: + runs-on: ubuntu-24.04 + steps: + - name: Check out the repository + uses: actions/checkout@v4 + + - name: REUSE license check + uses: fsfe/reuse-action@v5 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5227ce2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# SPDX-FileCopyrightText: 2025 Friedrich von Never +# +# SPDX-License-Identifier: MIT + +# IntelliJ-based IDE stuff: +/.idea/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..a9fff9a --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,31 @@ + + +Contributor Guide +================= + +License Automation +------------------ + +If the CI asks you to update the file licenses, follow one of these: +1. Update the headers manually (look at the existing files), something like this: + ``` + # SPDX-FileCopyrightText: %year% %your name% <%your contact info, e.g. email%> + # + # SPDX-License-Identifier: MIT + ``` + (accommodate to the file's comment style if required). +2. Alternately, use the [REUSE][reuse] tool: + ```console + $ reuse annotate --license MIT --copyright '%your name% <%your contact info, e.g. email%>' %file names to annotate% + ``` + +(Feel free to attribute the changes to "codingteam/devops contributors " +instead of your name in a multi-author file, +or if you don't want your name to be mentioned in the project's source: this doesn't mean you'll lose the copyright.) + + +[reuse]: https://reuse.software/ diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 0000000..d817195 --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,18 @@ +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO +EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/License.md b/License.md deleted file mode 100644 index a4fd418..0000000 --- a/License.md +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) -===================== - -Copyright (c) 2015—2017 codingteam contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/Readme.md b/README.md similarity index 62% rename from Readme.md rename to README.md index 6db270c..d18859b 100644 --- a/Readme.md +++ b/README.md @@ -1,7 +1,11 @@ -Codingteam operations -===================== + + +🔧 Codingteam operations 🔧 +========================= This is a repository dedicated to Codingteam infrastructure maintenance. @@ -22,15 +26,24 @@ Host specification - [cthulhu-3][hosts/cthulhu-3] - [omnissiah][hosts/omnissiah] -[hosts/ctor]: ctor/Host.md -[hosts/cthulhu-3]: cthulhu-3/Host.md -[hosts/omnissiah]: omnissiah/Host.md -[schematic]: docs/devops.png +Documentation +------------- +- [Contributor Guide][docs.contributing] + +License +------- +The project is distributed under the terms of [the MIT license][docs.license]. + +The license indication in the project's sources is compliant with the [REUSE specification v3.3][reuse.spec]. +[badge-xmpp.net]: https://xmpp.net/badge.php?domain=codingteam.org.ru [codingteam.org.ru]: https://codingteam.org.ru [devops]: https://ru.wikipedia.org/wiki/DevOps +[docs.license]: LICENSES/MIT.txt +[hosts/cthulhu-3]: cthulhu-3/Host.md +[hosts/ctor]: ctor/Host.md +[hosts/omnissiah]: omnissiah/Host.md [issues]: https://github.com/codingteam/devops/issues [loglist.xyz]: https://loglist.xyz +[reuse.spec]: https://reuse.software/spec-3.3/ [xmpp.net]: https://xmpp.net/result.php?domain=codingteam.org.ru&type=client - -[badge-xmpp.net]: https://xmpp.net/badge.php?domain=codingteam.org.ru diff --git a/cthulhu-3/Host.md b/cthulhu-3/Host.md index c335c2e..e314c8f 100644 --- a/cthulhu-3/Host.md +++ b/cthulhu-3/Host.md @@ -1,3 +1,9 @@ + + cthulhu-3 ========= diff --git a/cthulhu-3/horta-hell/Readme.md b/cthulhu-3/horta-hell/Readme.md index c0ee984..22ef365 100644 --- a/cthulhu-3/horta-hell/Readme.md +++ b/cthulhu-3/horta-hell/Readme.md @@ -1,3 +1,9 @@ + + [horta-hell][] ============== diff --git a/cthulhu-3/horta-hell/docker-compose.yml b/cthulhu-3/horta-hell/docker-compose.yml index ecdc7a8..5bdb9fa 100644 --- a/cthulhu-3/horta-hell/docker-compose.yml +++ b/cthulhu-3/horta-hell/docker-compose.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2017-2025 Friedrich von Never +# +# SPDX-License-Identifier: MIT + version: '2' services: application: diff --git a/cthulhu-3/horta-hell/horta.properties.example b/cthulhu-3/horta-hell/horta.properties.example index b01a16e..81b3848 100644 --- a/cthulhu-3/horta-hell/horta.properties.example +++ b/cthulhu-3/horta-hell/horta.properties.example @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2017-2025 Friedrich von Never +# +# SPDX-License-Identifier: MIT + login=horta-hell password=password server=codingteam.org.ru diff --git a/ctor/Host.md b/ctor/Host.md index 7c627fb..98bb046 100644 --- a/ctor/Host.md +++ b/ctor/Host.md @@ -1,3 +1,9 @@ + + codingteam.org.ru ----------------- diff --git a/ctor/etc/loglist/loglist.sample.conf b/ctor/etc/loglist/loglist.sample.conf index fbb3b52..6fa5247 100644 --- a/ctor/etc/loglist/loglist.sample.conf +++ b/ctor/etc/loglist/loglist.sample.conf @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2016-2025 Friedrich von Never +# +# SPDX-License-Identifier: MIT + APPLY_EVOLUTIONS_SILENTLY=true APPROVAL_EMAIL=loglist@example.com APPROVAL_EMAIL_PASSWORD=example-mail-password diff --git a/ctor/etc/nginx/nginx.conf b/ctor/etc/nginx/nginx.conf index 365c982..9fc63a7 100644 --- a/ctor/etc/nginx/nginx.conf +++ b/ctor/etc/nginx/nginx.conf @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2016-2025 Friedrich von Never +# +# SPDX-License-Identifier: MIT + user www-data; worker_processes 4; pid /run/nginx.pid; @@ -40,30 +44,6 @@ http { gzip on; gzip_disable "msie6"; - # gzip_vary on; - # gzip_proxied any; - # gzip_comp_level 6; - # gzip_buffers 16 8k; - # gzip_http_version 1.1; - # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; - - ## - # nginx-naxsi config - ## - # Uncomment it if you installed nginx-naxsi - ## - - #include /etc/nginx/naxsi_core.rules; - - ## - # nginx-passenger config - ## - # Uncomment it if you installed nginx-passenger - ## - - #passenger_root /usr; - #passenger_ruby /usr/bin/ruby; - ## # Virtual Host Configs ## @@ -71,25 +51,3 @@ http { include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; } - - -#mail { -# # See sample authentication script at: -# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript -# -# # auth_http localhost/auth.php; -# # pop3_capabilities "TOP" "USER"; -# # imap_capabilities "IMAP4rev1" "UIDPLUS"; -# -# server { -# listen localhost:110; -# protocol pop3; -# proxy on; -# } -# -# server { -# listen localhost:143; -# protocol imap; -# proxy on; -# } -#} diff --git a/ctor/etc/nginx/sites-available/cad b/ctor/etc/nginx/sites-available/cad index c7944d8..e154d5c 100644 --- a/ctor/etc/nginx/sites-available/cad +++ b/ctor/etc/nginx/sites-available/cad @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2016-2025 Friedrich von Never +# +# SPDX-License-Identifier: MIT + server { listen 80; listen [::]:80; diff --git a/ctor/etc/nginx/sites-available/default b/ctor/etc/nginx/sites-available/default index 15462ba..17a28d4 100644 --- a/ctor/etc/nginx/sites-available/default +++ b/ctor/etc/nginx/sites-available/default @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2016-2025 codingteam/devops contributors +# +# SPDX-License-Identifier: MIT + server { listen 443 ssl http2; server_name codingteam.org.ru; diff --git a/ctor/etc/nginx/sites-available/loglist b/ctor/etc/nginx/sites-available/loglist index b8f5ef7..5440a9d 100644 --- a/ctor/etc/nginx/sites-available/loglist +++ b/ctor/etc/nginx/sites-available/loglist @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2016-2025 codingteam/devops contributors +# +# SPDX-License-Identifier: MIT + server { listen 443 ssl http2; server_name loglist.xyz; diff --git a/ctor/etc/nginx/sites-available/tales b/ctor/etc/nginx/sites-available/tales index 4b40c21..6e86fea 100644 --- a/ctor/etc/nginx/sites-available/tales +++ b/ctor/etc/nginx/sites-available/tales @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2017-2025 codingteam/devops contributors +# +# SPDX-License-Identifier: MIT + server { listen 443 ssl http2; server_name tales.codingteam.org.ru; diff --git a/ctor/etc/nginx/ssl.conf b/ctor/etc/nginx/ssl.conf index 3b4ac03..3e72804 100644 --- a/ctor/etc/nginx/ssl.conf +++ b/ctor/etc/nginx/ssl.conf @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2017-2025 codingteam/devops contributors +# +# SPDX-License-Identifier: MIT + ssl_certificate /etc/letsencrypt/live/codingteam.org.ru-0001/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/codingteam.org.ru-0001/privkey.pem; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; diff --git a/ctor/etc/systemd/system/cor-site.service b/ctor/etc/systemd/system/cor-site.service index d14f8fe..f61b2b6 100644 --- a/ctor/etc/systemd/system/cor-site.service +++ b/ctor/etc/systemd/system/cor-site.service @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2016-2025 Friedrich von Never +# +# SPDX-License-Identifier: MIT + [Unit] Description=codingteam.org.ru site After=network.target diff --git a/ctor/etc/systemd/system/loglist.service b/ctor/etc/systemd/system/loglist.service index 87fc6dc..424f5d7 100644 --- a/ctor/etc/systemd/system/loglist.service +++ b/ctor/etc/systemd/system/loglist.service @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2016-2025 Friedrich von Never +# +# SPDX-License-Identifier: MIT + [Unit] Description=loglist.xyz site After=network.target diff --git a/docs/devops.png b/docs/devops.png deleted file mode 100644 index 114cc54..0000000 Binary files a/docs/devops.png and /dev/null differ diff --git a/docs/devops.svg b/docs/devops.svg deleted file mode 100644 index 8ac37d6..0000000 --- a/docs/devops.svg +++ /dev/null @@ -1,152 +0,0 @@ - - - -image/svg+xmlLayer_1development -testing - -exhumation -devops - \ No newline at end of file diff --git a/omnissiah/.gitignore b/omnissiah/.gitignore index 017ebc6..386575d 100644 --- a/omnissiah/.gitignore +++ b/omnissiah/.gitignore @@ -1 +1,5 @@ +# SPDX-FileCopyrightText: 2017-2025 Friedrich von Never +# +# SPDX-License-Identifier: MIT + /chat-linker/app-config.json diff --git a/omnissiah/Host.md b/omnissiah/Host.md index cc89d6d..4aee1f2 100644 --- a/omnissiah/Host.md +++ b/omnissiah/Host.md @@ -1,3 +1,9 @@ + + omnissiah ========= diff --git a/omnissiah/chat-linker/Dockerfile b/omnissiah/chat-linker/Dockerfile index 621f853..9ab3cf1 100644 --- a/omnissiah/chat-linker/Dockerfile +++ b/omnissiah/chat-linker/Dockerfile @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2017-2025 Friedrich von Never +# +# SPDX-License-Identifier: MIT + FROM node:8.7.0-alpine RUN apk update && apk add git RUN git clone https://github.com/jt3k/chat-linker.git /usr/app && cd /usr/app && git checkout 4aab67aa6a59368896d427f14060c59484ff0a37 diff --git a/omnissiah/chat-linker/Readme.md b/omnissiah/chat-linker/Readme.md index 402e54e..1001fc1 100644 --- a/omnissiah/chat-linker/Readme.md +++ b/omnissiah/chat-linker/Readme.md @@ -1,3 +1,9 @@ + + chat-linker =========== diff --git a/omnissiah/chat-linker/app-config.example.json.license b/omnissiah/chat-linker/app-config.example.json.license new file mode 100644 index 0000000..22bbd7a --- /dev/null +++ b/omnissiah/chat-linker/app-config.example.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2017-2025 Friedrich von Never + +SPDX-License-Identifier: MIT diff --git a/omnissiah/chat-linker/docker-compose.yml b/omnissiah/chat-linker/docker-compose.yml index ea96b89..993c050 100644 --- a/omnissiah/chat-linker/docker-compose.yml +++ b/omnissiah/chat-linker/docker-compose.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2017-2025 Friedrich von Never +# +# SPDX-License-Identifier: MIT + version: '2' services: linker: diff --git a/renovate.json.license b/renovate.json.license new file mode 100644 index 0000000..cd1d78a --- /dev/null +++ b/renovate.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Friedrich von Never + +SPDX-License-Identifier: MIT