adding token to volume
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
certbot/
|
certbot/
|
||||||
|
backend/token/
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ type SpotifyConfig struct {
|
|||||||
ClientSecret string
|
ClientSecret string
|
||||||
}
|
}
|
||||||
|
|
||||||
const SPOTIFY_TOKEN_JSON_PATH = "spotify_token.json"
|
const SPOTIFY_TOKEN_JSON_PATH = "/backend/token/spotify_token.json"
|
||||||
|
|
||||||
func SaveSpotifyToken(path string, tok *oauth2.Token) error {
|
func SaveSpotifyToken(path string, tok *oauth2.Token) error {
|
||||||
data := struct {
|
data := struct {
|
||||||
|
|||||||
@@ -55,6 +55,8 @@ services:
|
|||||||
- app-network
|
- app-network
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
|
volumes:
|
||||||
|
- ./backend/token/:/backend/token
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres:16
|
image: postgres:16
|
||||||
|
|||||||
Reference in New Issue
Block a user