Skip to content

Commit fdbaddf

Browse files
committed
Migrate loglist to the new domain
1 parent 9eee648 commit fdbaddf

File tree

4 files changed

+19
-38
lines changed

4 files changed

+19
-38
lines changed

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ We're hosting a set of services:
99

1010
- XMPP server [![xmpp.net score][badge-xmpp.net]][xmpp.net]
1111
- [codingteam.org.ru][] site
12-
- [loglist.net][] site
12+
- [loglist.xyz][] site
1313
- [DATA EXPUNGED]
1414

1515
If you have an issue with any of these services, feel free to [open an
@@ -30,7 +30,7 @@ Host specification
3030
[codingteam.org.ru]: https://codingteam.org.ru
3131
[devops]: https://ru.wikipedia.org/wiki/DevOps
3232
[issues]: https://github.com/codingteam/devops/issues
33-
[loglist.net]: https://loglist.net
33+
[loglist.xyz]: https://loglist.xyz
3434
[xmpp.net]: https://xmpp.net/result.php?domain=codingteam.org.ru&type=client
3535

3636
[badge-xmpp.net]: https://xmpp.net/badge.php?domain=codingteam.org.ru
Lines changed: 14 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,41 @@
1-
# You may add here your
2-
# server {
3-
# ...
4-
# }
5-
# statements for each of your virtual hosts to this file
6-
7-
##
8-
# You should look at the following URL's in order to grasp a solid understanding
9-
# of Nginx configuration files in order to fully unleash the power of Nginx.
10-
# http://wiki.nginx.org/Pitfalls
11-
# http://wiki.nginx.org/QuickStart
12-
# http://wiki.nginx.org/Configuration
13-
#
14-
# Generally, you will want to move this file somewhere, and start with a clean
15-
# file but keep this around for reference. Or just disable in sites-enabled.
16-
#
17-
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
18-
##
19-
201
server {
212
listen 443 ssl http2;
22-
server_name loglist.net;
3+
server_name loglist.xyz;
234
include /etc/nginx/ssl.conf;
245

256
location / {
267
proxy_set_header X-Forwarded-Host $host;
278
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
289
proxy_set_header X-Forwarded-Proto $scheme;
29-
proxy_set_header Host loglist.net;
10+
proxy_set_header Host loglist.xyz;
3011
proxy_http_version 1.1;
3112
proxy_pass http://localhost:9000/;
3213
}
3314
}
3415

3516
server {
3617
listen 443 ssl http2;
37-
server_name *.loglist.net;
18+
server_name *.loglist.xyz;
3819
include /etc/nginx/ssl.conf;
3920

4021
location / {
41-
return 301 https://loglist.net$request_uri;
22+
return 301 https://loglist.xyz$request_uri;
4223
}
4324
}
4425

4526
server {
46-
listen 80;
47-
server_name loglist.net;
27+
listen 80;
28+
server_name loglist.xyz;
4829

49-
location / {
50-
rewrite ^(.*)$ https://loglist.net$1 permanent;
51-
}
30+
location / {
31+
rewrite ^(.*)$ https://loglist.xyz$1 permanent;
32+
}
5233
}
5334

5435
server {
55-
listen 80;
56-
server_name *.loglist.net;
57-
location / {
58-
return 301 https://loglist.net$request_uri;
59-
}
36+
listen 80;
37+
server_name *.loglist.xyz;
38+
location / {
39+
return 301 https://loglist.xyz$request_uri;
40+
}
6041
}

ctor/etc/nginx/ssl.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ssl_certificate /etc/letsencrypt/live/loglist.net/fullchain.pem;
2-
ssl_certificate_key /etc/letsencrypt/live/loglist.net/privkey.pem;
1+
ssl_certificate /etc/letsencrypt/live/codingteam.org.ru-0001/fullchain.pem;
2+
ssl_certificate_key /etc/letsencrypt/live/codingteam.org.ru-0001/privkey.pem;
33
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
44
ssl_ciphers "HIGH:!aNULL:!MD5:!kEDH";
55
add_header Strict-Transport-Security 'max-age=15552000';

ctor/etc/systemd/system/loglist.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[Unit]
2-
Description=loglist.net site
2+
Description=loglist.xyz site
33
After=network.target
44

55
[Service]

0 commit comments

Comments
 (0)