2.5-stable release

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

28
wiki.md
View File

@ -681,22 +681,12 @@ To set up a reverse proxy for the HMAC File Server, you can use either Apache2 o
sudo systemctl restart nginx 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: #### 3. ejabberd Configuration
```sh
sudo apt-get update
sudo apt-get install ejabberd
```
2. Edit the ejabberd configuration file:
```sh
sudo nano /etc/ejabberd/ejabberd.yml
```
3. Add the following configuration to the file:
```yaml ```yaml
hosts: hosts:
- "your-domain.com" - "your-domain.com"
@ -741,6 +731,17 @@ To configure ejabberd for use with the HMAC File Server, follow these steps:
access_rules: access_rules:
local: local:
allow: 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: 4. Restart ejabberd:
@ -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. - 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. - For any issues or questions, refer to the project's GitHub repository and documentation.
````