File tree Expand file tree Collapse file tree 4 files changed +86
-0
lines changed
Expand file tree Collapse file tree 4 files changed +86
-0
lines changed Original file line number Diff line number Diff line change 1+ <wpf : ResourceDictionary xml : space =" preserve" xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml" xmlns : s =" clr-namespace:System;assembly=mscorlib" xmlns : ss =" urn:shemas-jetbrains-com:settings-storage-xaml" xmlns : wpf =" http://schemas.microsoft.com/winfx/2006/xaml/presentation" >
2+ <s : Boolean x : Key =" /Default/UserDictionary/Words/=codingteam/@EntryIndexedValue" >True</s : Boolean ></wpf : ResourceDictionary >
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2025 Friedrich von Never <friedrich@fornever.me>
2+ #
3+ # SPDX-License-Identifier: MIT
4+
5+ ---
6+ - name : Main site for codingteam.org.ru
7+ hosts : xmpp2
8+ vars :
9+ codingteam_org_ru_version : v1.2.1
10+
11+ handlers :
12+ - name : Prune Docker
13+ community.docker.docker_prune :
14+ containers : true
15+ images : true
16+ images_filters :
17+ dangling : false
18+ networks : true
19+ volumes : true
20+ builder_cache : true
21+
22+ - name : Reload nginx
23+ ansible.builtin.service :
24+ name : nginx
25+ state : reloaded
26+
27+ tasks :
28+ - name : Set up the Docker container
29+ community.docker.docker_container :
30+ name : codingteam.org.ru
31+ image_name_mismatch : recreate
32+ image : codingteam/codingteam.org.ru:{{ codingteam_org_ru_version }}
33+ published_ports :
34+ - 80:5000
35+ restart_policy : unless-stopped
36+ default_host_ip : ' '
37+ notify : Prune Docker
38+
39+ - name : Set up the nginx configuration file
40+ ansible.builtin.copy :
41+ src : nginx/conf.d/codingteam.org.ru.conf
42+ dest : /etc/nginx/conf.d/codingteam.org.ru.conf
43+ notify : Reload nginx
Original file line number Diff line number Diff line change 44
55- import_playbook : auth.yml
66- import_playbook : nginx.yml
7+ - import_playbook : codingteam.org.ru.yml
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2016-2025 codingteam/devops contributors <https://github.com/codingteam/devops>
2+ #
3+ # SPDX-License-Identifier: MIT
4+
5+ server {
6+ listen 443 ssl http2;
7+ server_name codingteam.org.ru;
8+
9+ # TODO: old logs
10+ #location /_logs/ {
11+ # proxy_set_header X-Forwarded-Host $host;
12+ # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
13+ # proxy_set_header X-Forwarded-Proto $scheme;
14+ # proxy_http_version 1.1;
15+ # proxy_pass https://chatlogs.jabber.ru/;
16+ #}
17+
18+ location /old-logs/ {
19+ alias /opt/codingteam/old-logs/;
20+ index index.html;
21+ }
22+
23+ location / {
24+ proxy_set_header X-Forwarded-Host $host;
25+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
26+ proxy_set_header X-Forwarded-Proto $scheme;
27+ proxy_set_header Host codingteam.org.ru;
28+ proxy_http_version 1.1;
29+ proxy_pass http://localhost:5000/;
30+ }
31+ }
32+
33+ server {
34+ listen 80;
35+ server_name codingteam.org.ru;
36+
37+ location / {
38+ rewrite ^(.*)$ https://codingteam.org.ru$1 permanent;
39+ }
40+ }
You can’t perform that action at this time.
0 commit comments