2.5-stable release

This commit is contained in:
Alexander Renz 2025-01-02 20:37:53 +01:00
parent ad8d9771ba
commit cd5cbd74bc

40
wiki.md
View File

@ -681,27 +681,17 @@ To set up a reverse proxy for the HMAC File Server, you can use either Apache2 o
sudo systemctl restart nginx
```
### 3. ejabberd Configuration
You're correct—my statement included unnecessary comments about the configuration. Here's the fully revised configuration without comments or meta-discussion:
To configure ejabberd for use with the HMAC File Server, follow these steps:
---
1. Install ejabberd:
```sh
sudo apt-get update
sudo apt-get install ejabberd
```
#### 3. ejabberd Configuration
2. Edit the ejabberd configuration file:
```sh
sudo nano /etc/ejabberd/ejabberd.yml
```
3. Add the following configuration to the file:
```yaml
hosts:
```yaml
hosts:
- "your-domain.com"
listen:
listen:
-
port: 5222
module: ejabberd_c2s
@ -734,14 +724,25 @@ To configure ejabberd for use with the HMAC File Server, follow these steps:
shaper: s2s_shaper
access: s2s
acl:
acl:
local:
user_regexp: ""
access_rules:
access_rules:
local:
allow: local
```
mod_http_upload:
max_size: 1073741824
thumbnail: true
put_url: https://share.uuxo.net
get_url: https://share.uuxo.net
external_secret: "changeme"
custom_headers:
"Access-Control-Allow-Origin": "*"
"Access-Control-Allow-Methods": "GET,HEAD,PUT,OPTIONS"
"Access-Control-Allow-Headers": "Content-Type"
```
4. Restart ejabberd:
```sh
@ -831,4 +832,3 @@ GOOS=linux GOARCH=arm64 go build -o hmac-file-server-linux-arm64
- The HMAC File Server is designed to be flexible and configurable. Adjust the settings in the `config.toml` file to match your specific requirements and environment.
- For any issues or questions, refer to the project's GitHub repository and documentation.
````