mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-17 17:04:22 +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,
|
||||
}
|
||||
|
||||
cert_key_default := "/etc/letsencrypt/live/localport.online/fullchain.pem"
|
||||
cert_file_default := "/etc/letsencrypt/live/localport.online/privkey.pem"
|
||||
cert_key_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_file := utils.GetEnv("CERT_FILE", cert_file_default)
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ start_server() {
|
|||
cd /home/ubuntu/song-recognition
|
||||
|
||||
export SERVE_HTTPS="true"
|
||||
export CERT_KEY="/etc/letsencrypt/live/localport.online/fullchain.pem"
|
||||
export CERT_FILE="/etc/letsencrypt/live/localport.online/privkey.pem"
|
||||
export CERT_KEY="/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
|
||||
sudo setcap CAP_NET_BIND_SERVICE+ep app
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue