Serve apps.miti.sh with https
This commit is contained in:
parent
02d17d1b11
commit
e8714ba8d4
@ -64,8 +64,18 @@ http {
|
||||
}
|
||||
|
||||
server {
|
||||
server_name apps.miti.sh;
|
||||
root /var/www/sites/apps.miti.sh;
|
||||
listen 443 ssl;
|
||||
server_name apps.miti.sh;
|
||||
|
||||
root /var/www/sites/apps.miti.sh;
|
||||
|
||||
include mime.types;
|
||||
charset utf-8;
|
||||
default_type text/html;
|
||||
|
||||
location ^~ /.well-known/acme-challenge {
|
||||
alias /var/www/dehydrated;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
|
@ -131,8 +131,8 @@ describe "https://git.miti.sh", ->
|
||||
|
||||
assert.truthy reqheader\match "Host: git.miti.sh"
|
||||
|
||||
describe "http://apps.miti.sh", ->
|
||||
describe "https://apps.miti.sh", ->
|
||||
it "doesn't find it", ->
|
||||
request = req "http://apps.miti.sh"
|
||||
request = req "https://apps.miti.sh"
|
||||
assert.same request\statusCode!, 404
|
||||
assert.same request\statusMessage!, "Not Found"
|
||||
|
Loading…
x
Reference in New Issue
Block a user