Serve webdevcat.me and subdomains with https
This commit is contained in:
@@ -79,33 +79,54 @@ http {
|
||||
}
|
||||
|
||||
server {
|
||||
# listen 443 ssl;
|
||||
listen 443 ssl;
|
||||
server_name webdevcat.me;
|
||||
|
||||
include mime.types;
|
||||
charset utf-8;
|
||||
default_type text/html;
|
||||
|
||||
ssl_certificate /var/www/certs/webdevcat.me/fullchain.pem;
|
||||
ssl_certificate_key /var/www/certs/webdevcat.me/privkey.pem;
|
||||
|
||||
location / {
|
||||
return 301 http://miti.sh$request_uri;
|
||||
return 301 https://miti.sh$request_uri;
|
||||
}
|
||||
|
||||
location ~ ^/git/?(.*)$ {
|
||||
return 301 http://git.miti.sh/ccm/$1;
|
||||
return 301 https://git.miti.sh/ccm/$1;
|
||||
}
|
||||
|
||||
location ~ ^/apps/(.*)$ {
|
||||
return 301 http://apps.miti.sh/$1;
|
||||
return 301 https://apps.miti.sh/$1;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name git.webdevcat.me;
|
||||
return 301 http://git.miti.sh$request_uri;
|
||||
|
||||
ssl_certificate /var/www/certs/webdevcat.me/fullchain.pem;
|
||||
ssl_certificate_key /var/www/certs/webdevcat.me/privkey.pem;
|
||||
|
||||
location ^~ /.well-known/acme-challenge {
|
||||
alias /var/www/dehydrated;
|
||||
}
|
||||
|
||||
return 301 https://git.miti.sh$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name apps.webdevcat.me;
|
||||
return 301 http://apps.miti.sh$request_uri;
|
||||
|
||||
ssl_certificate /var/www/certs/webdevcat.me/fullchain.pem;
|
||||
ssl_certificate_key /var/www/certs/webdevcat.me/privkey.pem;
|
||||
|
||||
location ^~ /.well-known/acme-challenge {
|
||||
alias /var/www/dehydrated;
|
||||
}
|
||||
|
||||
return 301 https://apps.miti.sh$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user