Merge pull request #4 from SunRed/master
Add compile flag again and update readme/env file
This commit is contained in:
commit
59014b5f9c
3 changed files with 12 additions and 9 deletions
|
@ -5,7 +5,7 @@ ENV RUSTFLAGS='-C target-feature=-crt-static'
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./site .
|
COPY ./site .
|
||||||
RUN apk add --no-cache musl-dev sqlite-dev
|
RUN apk add --no-cache musl-dev sqlite-dev
|
||||||
RUN cargo install --path .
|
RUN cargo install --path . -j $(nproc)
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
|
|
@ -23,10 +23,10 @@ docker-compose up -d
|
||||||
|
|
||||||
## Configuration environment file
|
## Configuration environment file
|
||||||
|
|
||||||
All configuration options are defined in .env, to be created in the same directory as this readme.
|
All configuration options are defined in crablog.env, an example configuration is provided.
|
||||||
|
When not using Docker you may have to add crablog.env to your startup script or define the variables there.
|
||||||
An example configuration:
|
|
||||||
|
|
||||||
|
`crablog.env`
|
||||||
```
|
```
|
||||||
USERNAME=yourusername
|
USERNAME=yourusername
|
||||||
EMAIL=me@mydomain.tld
|
EMAIL=me@mydomain.tld
|
||||||
|
|
13
crablog.env
13
crablog.env
|
@ -1,6 +1,9 @@
|
||||||
SUBMIT_TOKEN=mysupersecretpw
|
USERNAME=yourusername
|
||||||
|
EMAIL=me@mydomain.tld
|
||||||
BIND_PORT=8000
|
BIND_PORT=8000
|
||||||
USERNAME=
|
SUBMIT_TOKEN=Submit!123 # token needed for submitting
|
||||||
EMAIL=
|
GITHUB_ACCOUNT=usernam3
|
||||||
TWITTER_ACCOUNT=
|
TWITTER_ACCOUNT=usernam3
|
||||||
GITHUB_ACCOUNT=
|
MASTODON_ACCOUNT=usernam3@mastodon.social
|
||||||
|
REDDIT_ACCOUNT=usernam3
|
||||||
|
DISCORD_ACCOUNT=usernam3
|
Loading…
Reference in a new issue