Skip to content

Commit

Permalink
Move INSECURE to docker-compose file and set INSECURE by default to t…
Browse files Browse the repository at this point in the history
…rue as it's self-signed (#6)

* set INSECURE to be configured from docker compose file

* change INSECURE to true by default

* add docker compose tutorial

* change docker-compose service name
  • Loading branch information
b4iterdev authored Nov 25, 2024
1 parent 7763ca5 commit b380fcc
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
INSECURE=false
SERVER_KEY=keys/server.key
SERVER_CERT=keys/server.crt
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,30 @@ It is comprised of three parts:

Further updates for new features, as well as a detailed setup guide and an easy to host docker container are in the pipeline!

# Docker Compose tutorial:
First, create a seperate folder in your working directory:
```
$ mkdir -p spectra-server/keys
$ cd spectra-server
```

Create a file named docker-compose.yml as follow:
```
---
services:
valo-spectra-server:
image: "ghcr.io/valospectra/server"
ports:
- "5100:5100"
- "5101:5101"
- "5200:5200"
volumes:
- ./keys:/app/keys
environment:
- INSECURE=true
```
Inside ```keys``` folder, add your SSL certificate and key. If your SSL is trusted, you can set ```INSECURE=false```. If you don't provide any, a self-signed one will be generated for you.

After that you can start the server by running: ```docker compose up -d```
# DISCLAIMER
Spectra-Client isn't endorsed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially involved in producing or managing Riot Games properties. Riot Games, and all associated properties are trademarks or registered trademarks of Riot Games, Inc.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ services:
- "5200:5200"
volumes:
- ./keys:/app/keys
environment:
- INSECURE=true

0 comments on commit b380fcc

Please sign in to comment.