Commit 72558b86 authored by Martin's avatar Martin

remove routers from proxy

parent 332d301b
......@@ -25,32 +25,6 @@ http {
keepalive_timeout 65;
types_hash_max_size 4096;
server {
server_name modem.czechia.rys.pw;
listen 443 ssl http2;
listen [::]:443 ssl http2;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://192.168.1.1:80;
proxy_read_timeout 90;
}
}
server {
server_name archer.czechia.rys.pw;
listen 443 ssl http2;
listen [::]:443 ssl http2;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://192.168.1.2:80;
proxy_read_timeout 90;
}
}
server {
server_name wekan.rys.pw;
listen 443 ssl http2;
......@@ -127,7 +101,7 @@ http {
server {
listen 80;
listen [::]:80;
server_name proxy.rys.pw cloud.rys.pw radio.rys.pw rss.rys.pw wekan.rys.pw monitoring.rys.pw archer.czechia.rys.pw modem.czechia.rys.pw;
server_name proxy.rys.pw cloud.rys.pw radio.rys.pw rss.rys.pw wekan.rys.pw monitoring.rys.pw;
return 301 https://$host$request_uri;
}
}
---
# sudo certbot certonly --nginx -d "proxy.rys.pw, cloud.rys.pw, chat.rys.pw, radio.rys.pw, rss.rys.pw, wekan.rys.pw, modem.czechia.rys.pw, archer.czechia.rys.pw" --email [email protected] --rsa-key-size 4096 --agree-tos
# sudo certbot certonly --nginx -d "proxy.rys.pw, cloud.rys.pw, monitoring.rys.pw, radio.rys.pw, rss.rys.pw, wekan.rys.pw" --email [email protected] --rsa-key-size 4096 --agree-tos
- name: Upload nginx.conf
notify: "restart nginx"
copy:
......
......@@ -6,7 +6,6 @@ a4,CNAME,sc1.rys.pw,300,0,
aleksandra,A,109.80.37.217,300,0,
analytics,CNAME,sc1.rys.pw,300,0,matomo server
ansible,A,109.80.37.217,300,0,
archer.czechia,CNAME,proxy.rys.pw,300,0,Router with OpenWRT
bree,CNAME,sc1.rys.pw,300,0,SC1 general container
cloud,CNAME,proxy.rys.pw,300,0,Nextcloud
czechia,A,109.80.37.217,300,0,O2 connection 50/5
......@@ -25,7 +24,6 @@ mail,CNAME,sc1.rys.pw,300,0,
meet,CNAME,sc2.rys.pw,300,0,
minecraft,CNAME,czechia.rys.pw,300,0,
mcskins,CNAME,sc1.rys.pw,300,0,
modem.czechia,CNAME,proxy.rys.pw,300,0,VDSL modem with OpenWRT
monitoring,CNAME,proxy.rys.pw,300,0,Cabot
mumble,CNAME,sc1.rys.pw,300,0,mumble server(murmur)
office,A,109.80.66.86,300,0,Kancl
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment