modified files
Este commit está contenido en:
@@ -2,7 +2,8 @@ version: '2'
|
||||
|
||||
services:
|
||||
prosody:
|
||||
image: 'prosody/prosody'
|
||||
build: ./prosody
|
||||
# image: 'prosody/prosody'
|
||||
hostname: prosody
|
||||
container_name: prosody
|
||||
restart: always
|
||||
@@ -10,12 +11,19 @@ services:
|
||||
- 5001:5001
|
||||
- 5222:5222
|
||||
- 5269:5269
|
||||
- 5280:5280
|
||||
- 5281:5281
|
||||
- 5289:5289
|
||||
volumes:
|
||||
- ./prosody/prosody:/etc/prosody
|
||||
- /opt/docker/secure/privkey.pem:/etc/prosody/certs/hatthieves.es.key:ro
|
||||
- /opt/docker/secure/fullchain.pem:/etc/prosody/certs/hatthieves.es.crt:ro
|
||||
- ./prosody/pid:/var/run/prosody
|
||||
- ./mod_http_upload.lua:/usr/lib/prosody/modules/mod_http_upload.lua:ro
|
||||
# - ./mod_register.lua:/usr/lib/prosody/modules/mod_register.lua:ro
|
||||
# - ./captcha.lua:/usr/lib/prosody/captcha.lua:ro
|
||||
# - ./dataforms.lua:/usr/lib/prosody/util/dataforms.lua:ro
|
||||
# - ./FiraSans-Regular.ttf:/usr/lib/prosody/FiraSans-Regular.ttf:ro
|
||||
networks:
|
||||
mynet:
|
||||
ipv4_address: 172.111.0.101
|
||||
|
||||
@@ -21,7 +21,7 @@ daemonize = false;
|
||||
-- for the server. Note that you must create the accounts separately
|
||||
-- (see https://prosody.im/doc/creating_accounts for info)
|
||||
-- Example: admins = { "user1@example.com", "user2@example.net" }
|
||||
admins = { }
|
||||
admins = { "ale@hatthieves.es" }
|
||||
|
||||
-- Enable use of libevent for better performance under high load
|
||||
-- For more information see: https://prosody.im/doc/libevent
|
||||
@@ -67,8 +67,9 @@ modules_enabled = {
|
||||
|
||||
-- HTTP modules
|
||||
--"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
|
||||
--"websocket"; -- XMPP over WebSockets
|
||||
"websocket"; -- XMPP over WebSockets
|
||||
--"http_files"; -- Serve static files from a directory over HTTP
|
||||
"http_upload";
|
||||
|
||||
-- Other specific functionality
|
||||
--"limits"; -- Enable bandwidth limiting for XMPP connections
|
||||
@@ -93,7 +94,11 @@ modules_disabled = {
|
||||
|
||||
-- Disable account creation by default, for security
|
||||
-- For more information see https://prosody.im/doc/creating_accounts
|
||||
registration_title = "Crear cuenta en HatThieves"
|
||||
registration_instructions = "Cree su cuenta libremente sin abusar, gracias"
|
||||
allow_registration = true
|
||||
min_seconds_between_registrations = 3600
|
||||
registration_throttle_cache_size = 1000
|
||||
|
||||
-- Force clients to use encrypted connections? This option will
|
||||
-- prevent clients from authenticating unless they are using encryption.
|
||||
@@ -176,12 +181,29 @@ certificates = "certs"
|
||||
-- HTTPS currently only supports a single certificate, specify it here:
|
||||
--https_certificate = "/etc/prosody/certs/localhost.crt"
|
||||
|
||||
http_upload_path = "/etc/prosody/upload"
|
||||
https_ssl = {
|
||||
certificate = "/etc/prosody/certs/hatthieves.es.crt";
|
||||
key = "/etc/prosody/certs/hatthieves.es.key";
|
||||
}
|
||||
consider_websocket_secure = true
|
||||
disco_items = {
|
||||
{ "upload.hatthieves.es" },
|
||||
}
|
||||
http_upload_file_size_limit = 10485760
|
||||
----------- Virtual hosts -----------
|
||||
-- You need to add a VirtualHost entry for each domain you wish Prosody to serve.
|
||||
-- Settings under each VirtualHost entry apply *only* to that host.
|
||||
|
||||
VirtualHost "hatthieves.es"
|
||||
|
||||
--captcha_config = {
|
||||
-- dir = "/tmp"; -- Directory used to storage captcha images. Please make sure prosody user allowed to write there.
|
||||
-- timeout = 60; -- Timeout when captcha will expire
|
||||
-- web_path = "challenge"; -- Web path used to separate main prosody site from itself modules.
|
||||
-- font = "/usr/lib/prosody/FiraSans-Regular.ttf" -- Font used for captcha text
|
||||
--}
|
||||
|
||||
--VirtualHost "example.com"
|
||||
-- certificate = "/path/to/example.crt"
|
||||
|
||||
@@ -203,3 +225,5 @@ Component "conference.hatthieves.es" "muc"
|
||||
--
|
||||
--Component "gateway.example.com"
|
||||
-- component_secret = "password"
|
||||
|
||||
Component "upload.hatthieves.es" "http_upload"
|
||||
|
||||
Referencia en una nueva incidencia
Block a user