mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-18 09:24:19 +00:00
update
This commit is contained in:
parent
91cab94ff1
commit
32eaf6d310
2 changed files with 4 additions and 4 deletions
4
main.go
4
main.go
|
|
@ -333,8 +333,8 @@ func serveHTTP(socketServer *socketio.Server, serveHTTPS bool) {
|
||||||
Handler: socketServer,
|
Handler: socketServer,
|
||||||
}
|
}
|
||||||
|
|
||||||
cert_key_default := "/etc/letsencrypt/live/localport.online/fullchain.pem"
|
cert_key_default := "/etc/letsencrypt/live/localport.online/privkey.pem"
|
||||||
cert_file_default := "/etc/letsencrypt/live/localport.online/privkey.pem"
|
cert_file_default := "/etc/letsencrypt/live/localport.online/fullchain.pem"
|
||||||
|
|
||||||
cert_key := utils.GetEnv("CERT_KEY", cert_key_default)
|
cert_key := utils.GetEnv("CERT_KEY", cert_key_default)
|
||||||
cert_file := utils.GetEnv("CERT_FILE", cert_file_default)
|
cert_file := utils.GetEnv("CERT_FILE", cert_file_default)
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ start_server() {
|
||||||
cd /home/ubuntu/song-recognition
|
cd /home/ubuntu/song-recognition
|
||||||
|
|
||||||
export SERVE_HTTPS="true"
|
export SERVE_HTTPS="true"
|
||||||
export CERT_KEY="/etc/letsencrypt/live/localport.online/fullchain.pem"
|
export CERT_KEY="/etc/letsencrypt/live/localport.online/privkey.pem"
|
||||||
export CERT_FILE="/etc/letsencrypt/live/localport.online/privkey.pem"
|
export CERT_FILE="/etc/letsencrypt/live/localport.online/fullchain.pem"
|
||||||
|
|
||||||
go build -tags netgo -ldflags '-s -w' -o app
|
go build -tags netgo -ldflags '-s -w' -o app
|
||||||
sudo setcap CAP_NET_BIND_SERVICE+ep app
|
sudo setcap CAP_NET_BIND_SERVICE+ep app
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue