Skip to content

Commit 946cd03

Browse files
committed
(#39) xmpp2: set up codingteam.org.ru
1 parent 240cd10 commit 946cd03

File tree

4 files changed

+86
-0
lines changed

4 files changed

+86
-0
lines changed

Folder.DotSettings

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
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>

xmpp2/codingteam.org.ru.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# SPDX-FileCopyrightText: 2025 Friedrich von Never <[email protected]>
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

xmpp2/default.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44

55
- import_playbook: auth.yml
66
- import_playbook: nginx.yml
7+
- import_playbook: codingteam.org.ru.yml
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
}

0 commit comments

Comments
 (0)