summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend.go2
-rw-r--r--index.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/backend.go b/backend.go
index 7618d21..b0b9785 100644
--- a/backend.go
+++ b/backend.go
@@ -9,7 +9,7 @@ func main() {
http.HandleFunc("/api/msg", messageHandler);
log.Fatal(http.ListenAndServeTLS(":6969",
"/etc/letsencrypt/live/ja.hairydiode.xyz/fullchain.pem",
- "/etc/letsencrypt/live/hairydiode.xyz/privkey.pem",
+ "/etc/letsencrypt/live/ja.hairydiode.xyz/privkey.pem",
nil));
}
func messageHandler(w http.ResponseWriter, r *http.Request) {
diff --git a/index.html b/index.html
index bc4fc18..49a40b5 100644
--- a/index.html
+++ b/index.html
@@ -30,7 +30,7 @@ function notify() {
msg = new Notification("あなたはチンチンが大好き");
}
//performing an https POST on the backend
-$.post("https://" + window.location.hostname + "/api/msg",
+$.post("https://" + window.location.hostname + ":6969/api/msg",
{ld : 0},// data to submit
function(data, status, jqXHR) { //callback function
if (data == ""){