Update container's Nginx config file to only serve matsubara.nl for now.
This commit is contained in:
parent
ce7b97f2c6
commit
f643bbdf89
@ -1,83 +1,175 @@
|
|||||||
# matsubara.nl
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
server_name matsubara.nl www.matsubara.nl;
|
server_name matsubara.nl www.matsubara.nl;
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
|
|
||||||
return 301 https://$host$request_uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
server_name matsubara.nl www.matsubara.nl;
|
|
||||||
server_tokens off;
|
|
||||||
|
|
||||||
listen 443 ssl http2;
|
|
||||||
listen [::]:443 ssl http2;
|
|
||||||
|
|
||||||
# These two directives define the paths to the TLS certificate and secret key.
|
|
||||||
# These will be provisioned using Certbot and mounted into the Nginx container in the next step.
|
|
||||||
ssl_certificate /etc/letsencrypt/live/matsubara.nl/fullchain.pem;
|
|
||||||
ssl_certificate_key /etc/letsencrypt/live/matsubara.nl/privkey.pem;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
|
|
||||||
# to redirect all the requests to index.html,
|
|
||||||
# useful when you are using react-router
|
|
||||||
|
|
||||||
try_files $uri /index.html;
|
try_files $uri /index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
error_page 500 502 503 504 /50x.html;
|
|
||||||
|
|
||||||
location = /50x.html {
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /.well-known/acme-challenge/ {
|
|
||||||
root /var/www/certbot;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# michelaben.nl
|
|
||||||
|
|
||||||
server {
|
# # matsubara.nl
|
||||||
server_name michelaben.nl www.michelaben.nl;
|
|
||||||
listen 80;
|
|
||||||
listen [::]:80;
|
|
||||||
|
|
||||||
return 301 https://$host$request_uri;
|
# server {
|
||||||
}
|
# server_name matsubara.nl www.matsubara.nl;
|
||||||
|
# listen 80;
|
||||||
|
# listen [::]:80;
|
||||||
|
|
||||||
server {
|
# return 301 https://$host$request_uri;
|
||||||
server_name michelaben.nl www.michelaben.nl;
|
# }
|
||||||
server_tokens off;
|
|
||||||
|
|
||||||
listen 443 ssl http2;
|
# server {
|
||||||
listen [::]:443 ssl http2;
|
# server_name matsubara.nl www.matsubara.nl;
|
||||||
|
# server_tokens off;
|
||||||
|
|
||||||
# These two directives define the paths to the TLS certificate and secret key.
|
# listen 443 ssl http2;
|
||||||
# These will be provisioned using Certbot and mounted into the Nginx container in the next step.
|
# listen [::]:443 ssl http2;
|
||||||
ssl_certificate /etc/letsencrypt/live/matsubara.nl/fullchain.pem;
|
|
||||||
ssl_certificate_key /etc/letsencrypt/live/matsubara.nl/privkey.pem;
|
|
||||||
|
|
||||||
location / {
|
# # These two directives define the paths to the TLS certificate and secret key.
|
||||||
root /usr/share/nginx/html/michelaben; # Update the path to your specific directory
|
# # These will be provisioned using Certbot and mounted into the Nginx container in the next step.
|
||||||
index index.html;
|
# ssl_certificate /etc/letsencrypt/live/matsubara.nl/fullchain.pem;
|
||||||
|
# ssl_certificate_key /etc/letsencrypt/live/matsubara.nl/privkey.pem;
|
||||||
|
|
||||||
# Redirect all requests to index.html
|
# location / {
|
||||||
try_files $uri /index.html;
|
# root /usr/share/nginx/html;
|
||||||
}
|
# index index.html index.htm;
|
||||||
|
|
||||||
error_page 500 502 503 504 /50x.html;
|
# # to redirect all the requests to index.html,
|
||||||
|
# # useful when you are using react-router
|
||||||
|
|
||||||
location = /50x.html {
|
# try_files $uri /index.html;
|
||||||
root /usr/share/nginx/html;
|
# }
|
||||||
}
|
|
||||||
|
|
||||||
location /.well-known/acme-challenge/ {
|
# error_page 500 502 503 504 /50x.html;
|
||||||
root /var/www/certbot;
|
|
||||||
}
|
# location = /50x.html {
|
||||||
}
|
# root /usr/share/nginx/html;
|
||||||
|
# }
|
||||||
|
|
||||||
|
# location /.well-known/acme-challenge/ {
|
||||||
|
# root /var/www/certbot;
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
|
||||||
|
# # pa4kev.nl
|
||||||
|
|
||||||
|
# server {
|
||||||
|
# server_name pa4kev.nl www.pa4kev.nl;
|
||||||
|
# listen 80;
|
||||||
|
# listen [::]:80;
|
||||||
|
|
||||||
|
# return 301 https://$host$request_uri;
|
||||||
|
# }
|
||||||
|
|
||||||
|
# server {
|
||||||
|
# server_name pa4kev.nl www.pa4kev.nl;
|
||||||
|
# server_tokens off;
|
||||||
|
|
||||||
|
# listen 443 ssl http2;
|
||||||
|
# listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
# # These two directives define the paths to the TLS certificate and secret key.
|
||||||
|
# # These will be provisioned using Certbot and mounted into the Nginx container in the next step.
|
||||||
|
# ssl_certificate /etc/letsencrypt/live/matsubara.nl/fullchain.pem;
|
||||||
|
# ssl_certificate_key /etc/letsencrypt/live/matsubara.nl/privkey.pem;
|
||||||
|
|
||||||
|
# location / {
|
||||||
|
# rewrite ^/$ /radio permanent;
|
||||||
|
# }
|
||||||
|
|
||||||
|
# error_page 500 502 503 504 /50x.html;
|
||||||
|
|
||||||
|
# location = /50x.html {
|
||||||
|
# root /usr/share/nginx/html;
|
||||||
|
# }
|
||||||
|
|
||||||
|
# location /.well-known/acme-challenge/ {
|
||||||
|
# root /var/www/certbot;
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
|
||||||
|
# # michelaben.nl
|
||||||
|
|
||||||
|
# server {
|
||||||
|
# server_name michelaben.nl www.michelaben.nl;
|
||||||
|
# listen 80;
|
||||||
|
# listen [::]:80;
|
||||||
|
|
||||||
|
# return 301 https://$host$request_uri;
|
||||||
|
# }
|
||||||
|
|
||||||
|
# server {
|
||||||
|
# server_name michelaben.nl www.michelaben.nl;
|
||||||
|
# server_tokens off;
|
||||||
|
|
||||||
|
# listen 443 ssl http2;
|
||||||
|
# listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
# # These two directives define the paths to the TLS certificate and secret key.
|
||||||
|
# # These will be provisioned using Certbot and mounted into the Nginx container in the next step.
|
||||||
|
# ssl_certificate /etc/letsencrypt/live/matsubara.nl/fullchain.pem;
|
||||||
|
# ssl_certificate_key /etc/letsencrypt/live/matsubara.nl/privkey.pem;
|
||||||
|
|
||||||
|
# location / {
|
||||||
|
# root /usr/share/nginx/html/michelaben; # Update the path to your specific directory
|
||||||
|
# index index.html;
|
||||||
|
|
||||||
|
# # Redirect all requests to index.html
|
||||||
|
# try_files $uri /index.html;
|
||||||
|
# }
|
||||||
|
|
||||||
|
# error_page 500 502 503 504 /50x.html;
|
||||||
|
|
||||||
|
# location = /50x.html {
|
||||||
|
# root /usr/share/nginx/html;
|
||||||
|
# }
|
||||||
|
|
||||||
|
# location /.well-known/acme-challenge/ {
|
||||||
|
# root /var/www/certbot;
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
|
||||||
|
# # gitea.matsubara.nl
|
||||||
|
|
||||||
|
# server {
|
||||||
|
# server_name gitea.matsubara.nl;
|
||||||
|
# listen 80;
|
||||||
|
# listen [::]:80;
|
||||||
|
|
||||||
|
# return 301 https://$host$request_uri;
|
||||||
|
# }
|
||||||
|
|
||||||
|
# server {
|
||||||
|
# server_name gitea.matsubara.nl;
|
||||||
|
# server_tokens off;
|
||||||
|
|
||||||
|
# listen 443 ssl http2;
|
||||||
|
# listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
# # These two directives define the paths to the TLS certificate and secret key.
|
||||||
|
# # These will be provisioned using Certbot and mounted into the Nginx container in the next step.
|
||||||
|
# ssl_certificate /etc/letsencrypt/live/matsubara.nl/fullchain.pem;
|
||||||
|
# ssl_certificate_key /etc/letsencrypt/live/matsubara.nl/privkey.pem;
|
||||||
|
|
||||||
|
# location / {
|
||||||
|
# root /usr/share/nginx/html/michelaben; # Update the path to your specific directory
|
||||||
|
# index index.html;
|
||||||
|
|
||||||
|
# # Redirect all requests to index.html
|
||||||
|
# try_files $uri /index.html;
|
||||||
|
# }
|
||||||
|
|
||||||
|
# error_page 500 502 503 504 /50x.html;
|
||||||
|
|
||||||
|
# location = /50x.html {
|
||||||
|
# root /usr/share/nginx/html;
|
||||||
|
# }
|
||||||
|
|
||||||
|
# location /.well-known/acme-challenge/ {
|
||||||
|
# root /var/www/certbot;
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user