Add docker instructions to readme
This commit is contained in:
parent
1877b4fd83
commit
089cea0042
3 changed files with 14 additions and 7 deletions
|
@ -1,7 +1,8 @@
|
|||
FROM nimlang/nim:alpine as nim
|
||||
MAINTAINER setenforce@protonmail.com
|
||||
EXPOSE 8080
|
||||
ENV HOSTNAME nitter.net
|
||||
ARG HOSTNAME
|
||||
ENV HOSTNAME ${HOSTNAME:-nitter.net}
|
||||
|
||||
COPY . /src/nitter
|
||||
WORKDIR /src/nitter
|
||||
|
|
|
@ -71,6 +71,12 @@ Set your port and page title in `nitter.conf`, then run Nitter by executing `./n
|
|||
You should run Nitter behind a reverse proxy such as
|
||||
[Nginx](https://github.com/zedeus/nitter/wiki/Nginx) or Apache for better security.
|
||||
|
||||
To build and run Nitter in Docker:
|
||||
```bash
|
||||
docker build -t nitter:latest --build-arg HOSTNAME=nitter.net .
|
||||
docker run -d -p 8080:8080 nitter:latest
|
||||
```
|
||||
|
||||
To run Nitter via systemd you can use this service file:
|
||||
|
||||
```bash
|
||||
|
|
|
@ -43,11 +43,6 @@ card = [
|
|||
'',
|
||||
'www.tesla.com', True],
|
||||
|
||||
['mobile_test/status/490378953744318464',
|
||||
'Nantasket Beach',
|
||||
'Rocks on the beach.',
|
||||
'500px.com', True],
|
||||
|
||||
['voidtarget/status/1094632512926605312',
|
||||
'Basic OBS Studio plugin, written in nim, supporting C++ (C fine too)',
|
||||
'Basic OBS Studio plugin, written in nim, supporting C++ (C fine too) - obsplugin.nim',
|
||||
|
@ -73,7 +68,12 @@ no_thumb = [
|
|||
['brent_p/status/1088857328680488961',
|
||||
'Hts Nim Sugar',
|
||||
'hts-nim is a library that allows one to use htslib via the nim programming language. Nim is a garbage-collected language that compiles to C and often has similar performance. I have become very...',
|
||||
'brentp.github.io']
|
||||
'brentp.github.io'],
|
||||
|
||||
['mobile_test/status/490378953744318464',
|
||||
'Nantasket Beach',
|
||||
'Rocks on the beach.',
|
||||
'500px.com']
|
||||
]
|
||||
|
||||
playable = [
|
||||
|
|
Loading…
Reference in a new issue