Skip to content

Commit

Permalink
did work on docker run command
Browse files Browse the repository at this point in the history
  • Loading branch information
nexus-uw committed Jan 4, 2024
1 parent 05e097a commit 98266e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ USER mokintoken:mokintoken


EXPOSE 8080
ENV CLEARNET "https://mokintoken.ramsay.xzy"
ENV DARKENT "http://mokinan4qvxi4ragyzgkewrmnnqslkcdglk6v5zruknwnnuvv2lu5uad.onion"
ENV CLEARNET "https://mokintoken.ramsay.xyz"
ENV DARKNET "http://mokinan4qvxi4ragyzgkewrmnnqslkcdglk6v5zruknwnnuvv2lu5uad.onion"
ENTRYPOINT ["/app/mokintoken"]
VOLUME /app/database/mokintoken.sqilte
VOLUME /app/database/mokintoken.sqlite

HEALTHCHECK --interval=30s --timeout=1s --start-period=5s --retries=3 CMD [ "/app/healthcheck" ]
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ using golang as server -> TODO blog
## how to self host

```
docker run -p 8080:8080 -v `pwd`/mokintoken.sqilte:/database/mokintoken.sqilte nexusuw/mokintoken
touch mokintoken.sqlite
docker run -p 8080:8080 -v `pwd`/mokintoken.sqlite:/app/database/mokintoken.sqlite -e CLEANET=yoursite.af -e DARKNET=onion nexusuw/mokintoken
```

## todo

- csrf
- slim down docker container size
- slim down docker container size (more)
- password protect notes (double encryption but stops someone from stumbling onto the contents if they just have the url)
- ratelimit
- allow uploading of images/files
Expand Down

0 comments on commit 98266e4

Please sign in to comment.