diff --git a/default b/default index c841ceb..9117e37 100644 --- a/default +++ b/default @@ -57,7 +57,7 @@ server { # include snippets/fastcgi-php.conf; # # # With php-fpm (or other unix sockets): - # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; + # fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; # # With php-cgi (or other tcp sockets): # fastcgi_pass 127.0.0.1:9000; #} diff --git a/git.ionathan.ch b/git.ionathan.ch new file mode 100644 index 0000000..37a3a6d --- /dev/null +++ b/git.ionathan.ch @@ -0,0 +1,29 @@ +server { + server_name git.ionathan.ch; + location / { + proxy_pass http://localhost:3000; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + } + + listen [::]:443 ssl; # managed by Certbot + listen 443 ssl; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/rss.ionathan.ch/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/rss.ionathan.ch/privkey.pem; # managed by Certbot + include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot + +} +server { + if ($host = git.ionathan.ch) { + return 301 https://$host$request_uri; + } # managed by Certbot + + + listen 80; + listen [::]:80; + server_name git.ionathan.ch; + return 404; # managed by Certbot + + +} \ No newline at end of file diff --git a/hilb.ert.space b/hilb.ert.space index 1b6a7d6..96bdccd 100644 --- a/hilb.ert.space +++ b/hilb.ert.space @@ -1,7 +1,7 @@ server { server_name hilb.ert.space; client_max_body_size 5M; - root /srv/www/hilb.ert.space; + root /srv/www/ert.space; location / { try_files $uri $uri/ =404; } diff --git a/next.ionathan.ch b/next.ionathan.ch new file mode 100644 index 0000000..195a562 --- /dev/null +++ b/next.ionathan.ch @@ -0,0 +1,40 @@ +server { + + server_name next.ionathan.ch; + client_max_body_size 512M; + + location / { + proxy_pass http://localhost:8080; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + } + location = /.well-known/carddav { + return 301 http://localhost:8080/remote.php/dav; + } + location = /.well-known/caldav { + return 301 http://localhost:8080/remote.php/dav; + } + + listen [::]:443 ssl; # managed by Certbot + listen 443 ssl; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/rss.ionathan.ch/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/rss.ionathan.ch/privkey.pem; # managed by Certbot + include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot + +} + +server { + if ($host = next.ionathan.ch) { + return 301 https://$host$request_uri; + } # managed by Certbot + + + listen 80; + listen [::]:80; + + server_name next.ionathan.ch; + return 404; # managed by Certbot + + +} \ No newline at end of file diff --git a/rss.ionathan.ch b/rss.ionathan.ch new file mode 100644 index 0000000..f350535 --- /dev/null +++ b/rss.ionathan.ch @@ -0,0 +1,29 @@ +server { + server_name rss.ionathan.ch; + location / { + proxy_pass http://localhost:8181; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + } + + listen [::]:443 ssl; # managed by Certbot + listen 443 ssl; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/rss.ionathan.ch/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/rss.ionathan.ch/privkey.pem; # managed by Certbot + include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot + +} +server { + if ($host = rss.ionathan.ch) { + return 301 https://$host$request_uri; + } # managed by Certbot + + + listen 80; + listen [::]:80; + server_name rss.ionathan.ch; + return 404; # managed by Certbot + + +} \ No newline at end of file