2.5-stable release
This commit is contained in:
parent
ad8d9771ba
commit
cd5cbd74bc
108
wiki.md
108
wiki.md
@ -681,67 +681,68 @@ 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:
|
```yaml
|
||||||
```sh
|
hosts:
|
||||||
sudo nano /etc/ejabberd/ejabberd.yml
|
- "your-domain.com"
|
||||||
```
|
|
||||||
|
|
||||||
3. Add the following configuration to the file:
|
listen:
|
||||||
```yaml
|
-
|
||||||
hosts:
|
port: 5222
|
||||||
- "your-domain.com"
|
module: ejabberd_c2s
|
||||||
|
certfile: "/etc/ejabberd/ejabberd.pem"
|
||||||
|
starttls: true
|
||||||
|
starttls_required: true
|
||||||
|
protocol_options:
|
||||||
|
- "no_sslv3"
|
||||||
|
- "no_tlsv1"
|
||||||
|
- "no_tlsv1_1"
|
||||||
|
ciphers: "HIGH:!aNULL:!eNULL:!3DES:@STRENGTH"
|
||||||
|
dhfile: "/etc/ejabberd/dhparams.pem"
|
||||||
|
max_stanza_size: 65536
|
||||||
|
shaper: c2s_shaper
|
||||||
|
access: c2s
|
||||||
|
|
||||||
listen:
|
-
|
||||||
-
|
port: 5269
|
||||||
port: 5222
|
module: ejabberd_s2s_in
|
||||||
module: ejabberd_c2s
|
certfile: "/etc/ejabberd/ejabberd.pem"
|
||||||
certfile: "/etc/ejabberd/ejabberd.pem"
|
starttls: true
|
||||||
starttls: true
|
starttls_required: true
|
||||||
starttls_required: true
|
protocol_options:
|
||||||
protocol_options:
|
- "no_sslv3"
|
||||||
- "no_sslv3"
|
- "no_tlsv1"
|
||||||
- "no_tlsv1"
|
- "no_tlsv1_1"
|
||||||
- "no_tlsv1_1"
|
ciphers: "HIGH:!aNULL:!eNULL:!3DES:@STRENGTH"
|
||||||
ciphers: "HIGH:!aNULL:!eNULL:!3DES:@STRENGTH"
|
dhfile: "/etc/ejabberd/dhparams.pem"
|
||||||
dhfile: "/etc/ejabberd/dhparams.pem"
|
max_stanza_size: 131072
|
||||||
max_stanza_size: 65536
|
shaper: s2s_shaper
|
||||||
shaper: c2s_shaper
|
access: s2s
|
||||||
access: c2s
|
|
||||||
|
|
||||||
-
|
acl:
|
||||||
port: 5269
|
local:
|
||||||
module: ejabberd_s2s_in
|
user_regexp: ""
|
||||||
certfile: "/etc/ejabberd/ejabberd.pem"
|
|
||||||
starttls: true
|
|
||||||
starttls_required: true
|
|
||||||
protocol_options:
|
|
||||||
- "no_sslv3"
|
|
||||||
- "no_tlsv1"
|
|
||||||
- "no_tlsv1_1"
|
|
||||||
ciphers: "HIGH:!aNULL:!eNULL:!3DES:@STRENGTH"
|
|
||||||
dhfile: "/etc/ejabberd/dhparams.pem"
|
|
||||||
max_stanza_size: 131072
|
|
||||||
shaper: s2s_shaper
|
|
||||||
access: s2s
|
|
||||||
|
|
||||||
acl:
|
access_rules:
|
||||||
local:
|
local:
|
||||||
user_regexp: ""
|
allow: local
|
||||||
|
|
||||||
access_rules:
|
mod_http_upload:
|
||||||
local:
|
max_size: 1073741824
|
||||||
allow: local
|
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:
|
||||||
```sh
|
```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.
|
- 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.
|
||||||
````
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user