File tree Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Expand file tree Collapse file tree 2 files changed +59
-0
lines changed 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+ # TODO: enable back after we set up SSL
7+ # listen 443 ssl http2;
8+ server_name loglist.xyz;
9+ # TODO: include /etc/nginx/ssl.conf;
10+
11+ location / {
12+ proxy_set_header X-Forwarded-Host $host;
13+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
14+ proxy_set_header X-Forwarded-Proto $scheme;
15+ proxy_set_header Host loglist.xyz;
16+ proxy_http_version 1.1;
17+ proxy_pass http://localhost:9000/;
18+ }
19+ }
20+
21+ server {
22+ # TODO: enable back after we set up SSL
23+ # listen 443 ssl http2;
24+ server_name *.loglist.xyz;
25+ # TODO: include /etc/nginx/ssl.conf;
26+
27+ location / {
28+ return 301 https://loglist.xyz$request_uri;
29+ }
30+ }
31+
32+ server {
33+ listen 80;
34+ server_name loglist.xyz;
35+
36+ location / {
37+ rewrite ^(.*)$ https://loglist.xyz$1 permanent;
38+ }
39+ }
40+
41+ server {
42+ listen 80;
43+ server_name *.loglist.xyz;
44+ location / {
45+ return 301 https://loglist.xyz$request_uri;
46+ }
47+ }
Original file line number Diff line number Diff line change 3434 volumes : true
3535 builder_cache : true
3636
37+ - name : Reload nginx
38+ ansible.builtin.service :
39+ name : nginx
40+ state : reloaded
41+
3742 tasks :
3843 - name : Create directories
3944 ansible.builtin.file :
107112 - name : loglist
108113 default_host_ip : ' '
109114 notify : Prune Docker
115+
116+ - name : Set up the nginx configuration file
117+ ansible.builtin.copy :
118+ src : nginx/conf.d/loglist.conf
119+ dest : /etc/nginx/conf.d/loglist.conf
120+ mode : " u=rx,go=rx"
121+ notify : Reload nginx
You can’t perform that action at this time.
0 commit comments