Serve apps.miti.sh with https

This commit is contained in:
Catalin Constantin Mititiuc 2025-06-14 13:32:08 -07:00
parent 02d17d1b11
commit e8714ba8d4
2 changed files with 14 additions and 4 deletions

View File

@ -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 {

View File

@ -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"