lam

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2019 License: MIT Imports: 6 Imported by: 0

README

LAM - LoL Account Manager

A Webapp to store and share League of Legends accounts.

Install

After installing Go and configuring $GOPATH, run:

go get github.com/erikfastermann/lam

Docker

After installing Docker and Docker-compose, run:

sudo docker-compose up -d

Add a User

Add a user with the manage.go script by running:

cd $GOPATH/src/github.com/erikfastermann/lam/manage
go get
go run manage.go -a $LAM_DB_PATH

If you don't supply a path, the default for this docker volume will be used.

You might need sudo for this to work.

HTTPS

To activate HTTPS, comment out and adjust the following in the docker-compose.yml file:

- path/to/keypairs:/var/lam/keypairs
LAM_HTTPS_DOMAIN: 'https://your-domain.com'
LAM_HTTPS_ADDRESS: ':443'
LAM_HTTPS_CERT_KEYS: '/var/lam/keypairs/cert-file:/var/lam/keypairs/key-file'

NOTE: Don't use different ports for inside and outside the container. Redirecting to HTTPS will not work otherwise.

Appendix

List of environment variables

Address (e.g.: ':80'): LAM_ADDRESS

Template Glob (e.g.: 'template/*'): LAM_TEMPLATE_GLOB

Sqlite3 DB Path (e.g.: '/lam.db'): LAM_DB_PATH

HTTPS

Address (set to activate): LAM_HTTPS_ADDRESS

Cert and Key files (eg.: './cert-file1:./key-file1,./cert-file2:./key-file2'): LAM_HTTPS_CERT_KEYS

Domain (used to upgrade from HTTP to HTTPS): LAM_HTTPS_DOMAIN

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL