Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
- /var/www/certbot:/var/www/certbot:ro
- /etc/letsencrypt:/etc/letsencrypt:ro
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost/health"]
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1/health"]
interval: 10s
timeout: 5s
retries: 3
Expand Down
21 changes: 13 additions & 8 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,23 @@ events {}

http {
server {
listen 80;
listen 80;
server_name api.sedimentt.site;

server_name api.sedimentt.site;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}

location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location = /health {
access_log off;
return 200 "healthy\n";
add_header Content-Type text/plain;
}

location / {
return 301 https://$host$request_uri;
}
location / {
return 301 https://$host$request_uri;
}
}

server {
listen 443 ssl http2;
Expand Down
Loading