Add tests for nginx.conf directives #1
@ -64,8 +64,18 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
server_name apps.miti.sh;
|
server_name apps.miti.sh;
|
||||||
|
|
||||||
root /var/www/sites/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 {
|
server {
|
||||||
|
@ -131,8 +131,8 @@ describe "https://git.miti.sh", ->
|
|||||||
|
|
||||||
assert.truthy reqheader\match "Host: 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", ->
|
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\statusCode!, 404
|
||||||
assert.same request\statusMessage!, "Not Found"
|
assert.same request\statusMessage!, "Not Found"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user