diff --git a/mynginx1.rschneider.hu.conf.template b/mynginx1.rschneider.hu.conf.template new file mode 100644 index 0000000..1255ceb --- /dev/null +++ b/mynginx1.rschneider.hu.conf.template @@ -0,0 +1,16 @@ +server { + + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name mynginx1.rschneider.hu; + + ssl_certificate /etc/nginx/ssl/live/mynginx1.rschneider.hu/fullchain.pem; + ssl_certificate_key /etc/nginx/ssl/live/mynginx1.rschneider.hu/privkey.pem; + + location / { + proxy_pass http://${nuc}:5050; + proxy_set_header Host $host; + } +} + diff --git a/nextcloud.rschneider.hu.conf b/nextcloud.rschneider.hu.conf index 1b7bbdf..e804834 100644 --- a/nextcloud.rschneider.hu.conf +++ b/nextcloud.rschneider.hu.conf @@ -9,7 +9,7 @@ server { ssl_certificate_key /etc/nginx/ssl/live/nextcloud.rschneider.hu/privkey.pem; location / { - proxy_pass http://rocho02.ddns.net:3680; + proxy_pass http://rocho02.ddns.net:5050; } } diff --git a/nginx/conf/nextcloud.rschneider.hu.conf b/nginx/conf/nextcloud.rschneider.hu.conf index 1c7787c..71ef7d7 100644 --- a/nginx/conf/nextcloud.rschneider.hu.conf +++ b/nginx/conf/nextcloud.rschneider.hu.conf @@ -9,7 +9,8 @@ server { ssl_certificate_key /etc/nginx/ssl/live/nextcloud.rschneider.hu/privkey.pem; location / { - proxy_pass http://46.251.21.47:3680; + proxy_pass http://46.251.21.47:5050; + proxy_set_header Host $host; } } diff --git a/nginx/conf/ssh.nuc.rschneider.hu b/nginx/conf/ssh.nuc.rschneider.hu index aaabc93..0e1d11e 100644 --- a/nginx/conf/ssh.nuc.rschneider.hu +++ b/nginx/conf/ssh.nuc.rschneider.hu @@ -1,3 +1,4 @@ +stream{ upstream nuc-ssh { server 46.251.21.47:2022; } @@ -7,4 +8,4 @@ server { server_name ssh.nuc.rschneider.hu proxy_pass nuc-ssh; } - +} diff --git a/nginx/templates/nextcloud.rschneider.hu.conf.template b/nginx/templates/nextcloud.rschneider.hu.conf.template index 40d51f9..d0e40a1 100644 --- a/nginx/templates/nextcloud.rschneider.hu.conf.template +++ b/nginx/templates/nextcloud.rschneider.hu.conf.template @@ -9,7 +9,8 @@ server { ssl_certificate_key /etc/nginx/ssl/live/nextcloud.rschneider.hu/privkey.pem; location / { - proxy_pass http://${nuc}:3680; + proxy_pass http://${nuc}:5050; + proxy_set_header Host $host; } }