Sem descrição

poesty 038cee31f2 fix há 9 meses atrás
base 42fa848a66 📝: update paste.sr.ht desc há 2 anos atrás
nginx_conf 9e11243e13 🐛: fix proto há 2 anos atrás
postgres_sh a749d100d6 🔨: refactor some code há 2 anos atrás
template 095a78a2eb fix scripts há 9 meses atrás
LICENSE c89f1e5539 📝: add license há 2 anos atrás
README.md 5837b285d7 ⭐️: update readme há 2 anos atrás
init.sh 038cee31f2 fix há 9 meses atrás
sourcehut.png 45bbd3effa 🐛: fix Readme image há 2 anos atrás
start.sh 095a78a2eb fix scripts há 9 meses atrás

README.md

sourcehut [x] docker

Make sourcehut run easily in docker


sourcehut.png

Docker

Quick Start

This project is not recommend for use in production.

bash ./init.sh

docker-compose up --build -d

If you don't set domain, it will be set to localtest.me(Resolve to 127.0.0.1).

You can visit the site at http://meta.localtest.me.

Init Admin Account

$ docker exec -it {{your_container_id}} /bin/sh

$ /usr/bin/metasrht-manageuser [-fmPps] [-e <EMAIL>] [-t <USER_TYPE>] <USERNAME>


Options:
    -e <EMAIL>      set user email
    -f              perform action even if using different authentication method
    -m              modify existing user
    -P              clear password
    -p              set password (default if creating a new user)
    -s              read initial password from stdin (only effective with -p)
    -t <USER_TYPE>  set user type to USER_TYPE; USER_TYPE must be one of these
                    values: unconfirmed, active_non_paying, active_free,
                    active_paying, active_delinquent, admin, unknown, suspended
````
## Support Modules

- `meta.sr.ht` ✅
- `git.sr.ht` ✅
- `hg.sr.ht` ✅
- `man.sr.ht` ✅
- `builds.sr.ht` ✅
    - Not included `builds.sr.ht worker`
- `lists.sr.ht` ✅
- `meta.sr.ht` ✅
- `todo.sr.ht`  ✅
- `paste.sr.ht` ✅
- `dispatch.sr.ht` ❌
    - See  [Planned deprecation of dispatch.sr.ht](https://sourcehut.org/blog/2022-08-01-dispatch-deprecation-plans/)

##  Configuration

If you  want to run `lists.sr.ht` or `api` service, you need to set SMTP in [mail] section of `./config.ini` .
Then uncomment the code corresponding in `start.sh`.

bash docker-compose up --build -d --force


### oauth-client
Register your client at `meta.localtest.me/oauth`
and set  Base Redirect URI `http://{{your_service}}.localtest.me/oauth/callback`


### Advance Configuration
See [official document](https://man.sr.ht/configuration.md)


## Requirements

bash docker-compose version > 1.29 ```

Links