Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
modlastfm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
stella-irc
modlastfm
Commits
e42e97a2
Commit
e42e97a2
authored
Oct 27, 2018
by
Mike Jones
🌶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to Docker setup, installation example
parent
00ed2b0e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
1 deletion
+28
-1
.gitignore
.gitignore
+2
-0
Dockerfile
Dockerfile
+1
-0
README.md
README.md
+20
-0
internal/app/modlastfm/util/config.go
internal/app/modlastfm/util/config.go
+5
-1
No files found.
.gitignore
View file @
e42e97a2
*.db
.idea
.env
docker-compose.yml
Dockerfile
View file @
e42e97a2
...
...
@@ -20,5 +20,6 @@ RUN chmod +x /opt/modlastfm
FROM
scratch
COPY
--from=builder /opt /opt
COPY
--from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT
["/opt/modlastfm"]
README.md
View file @
e42e97a2
# stella-irc lastfm module
## Installation
### With Docker Compose
Example docker-compose.yml:
```
version: "2"
services:
modlastfm:
build: .
volumes:
- ./lastfm.db:/lastfm.db
environment:
- LASTFM_API_KEY="APIKEYHERE"
- LASTFM_API_SECRET="APISECRETHERE"
command: /opt/modlastfm
```
\ No newline at end of file
internal/app/modlastfm/util/config.go
View file @
e42e97a2
...
...
@@ -27,7 +27,11 @@ func NewConfig() *Config {
}
if
c
.
APIKey
==
""
{
log
.
Fatal
(
"A Last.FM API key is required"
)
log
.
Fatalf
(
"A Last.FM API key is required (%s)"
,
apiKeyKey
)
}
if
c
.
APISecret
==
""
{
log
.
Fatalf
(
"A Last.FM API secret is required (%s)"
,
apiSecretKey
)
}
if
c
.
DBPath
==
""
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment