Skip to content

Commit

Permalink
Removed unneccessary placeholder files under host/.well-known
Browse files Browse the repository at this point in the history
The presence of these files was leading to the following warning in the logs:
"Unable to clean up challenge directory"

This seemed to be benign, but I decided to clean it up anyway.
  • Loading branch information
lmsurpre committed Jan 24, 2017
1 parent de540c9 commit 0dea2de
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 16 deletions.
Binary file removed .DS_Store
Binary file not shown.
Binary file removed host/.DS_Store
Binary file not shown.
6 changes: 0 additions & 6 deletions host/.well-known/acme-challenge/index.html

This file was deleted.

6 changes: 0 additions & 6 deletions host/.well-known/index.html

This file was deleted.

4 changes: 2 additions & 2 deletions host/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<html>
<head><title>This is not here</title></head>
<head><title>Placeholder</title></head>
<body>
<h1>Hello!</h1>
<h1>This page intentionally left to ensure the directory is uploaded</h1>
</body>
</html>
4 changes: 3 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import yaml
import os
import sys
import time
import threading
import SimpleHTTPServer
Expand Down Expand Up @@ -74,8 +75,9 @@
print("cf ssh letsencrypt -c 'cat ~/app/conf/live/" + path + "/chain.pem' > chain.pem")
print("cf ssh letsencrypt -c 'cat ~/app/conf/live/" + path + "/fullchain.pem' > fullchain.pem")
print("cf ssh letsencrypt -c 'cat ~/app/conf/live/" + path + "/privkey.pem' > privkey.pem")
print()
print("\n")
print("REMEMBER TO STOP THE SERVER WITH cf stop letsencrypt")
sys.stdout.flush()

# Sleep for a week
time.sleep(604800)
Expand Down
2 changes: 1 addition & 1 deletion setup-app.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def check_ssl(ssl_domain):
call(["cf", "map-route", appname, domain, "--hostname", host, "--path", "/.well-known/acme-challenge/"])

# Now the app can be started
call(["cf", "start", appname])
check_call(["cf", "start", appname])

# Tail the application log
print("Parsing log files.")
Expand Down

0 comments on commit 0dea2de

Please sign in to comment.