mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-04-15 11:47:09 +02:00
update prosody
This commit is contained in:
parent
e125e84eab
commit
2f91f19a8d
@ -18,6 +18,8 @@ $ docker-compose exec prosody bash
|
|||||||
>>> prosodyctl adduser admin@localhost
|
>>> prosodyctl adduser admin@localhost
|
||||||
Enter new password: ******
|
Enter new password: ******
|
||||||
Retype new password: ******
|
Retype new password: ******
|
||||||
|
>>> prosodyctl register guest localhost ******
|
||||||
|
>>> prosodyctl reload
|
||||||
```
|
```
|
||||||
|
|
||||||
[1]: https://prosody.im/
|
[1]: https://prosody.im/
|
||||||
|
19
prosody/arm/Dockerfile
Normal file
19
prosody/arm/Dockerfile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#
|
||||||
|
# Dockerfile for prosdoy
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM multiarch/debian-debootstrap:armhf-buster
|
||||||
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
|
RUN set -xe \
|
||||||
|
&& echo "deb http://packages.prosody.im/debian $(lsb_release -sc) main" | tee -a /etc/apt/sources.list \
|
||||||
|
&& wget https://prosody.im/files/prosody-debian-packages.key -O- | apt-key add - \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get install -y prosody \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
EXPOSE 80 443 5222 5269 5347 5280 5281
|
||||||
|
|
||||||
|
USER prosody
|
||||||
|
ENV __FLUSH_LOG yes
|
||||||
|
CMD ["prosody"]
|
10
prosody/arm/docker-compose.yml
Normal file
10
prosody/arm/docker-compose.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
prosody:
|
||||||
|
image: easypi/prosody-arm
|
||||||
|
ports:
|
||||||
|
- "5222:5222"
|
||||||
|
- "5280:5280"
|
||||||
|
volumes:
|
||||||
|
- ./data/etc:/etc/prosody:ro
|
||||||
|
- ./data/log:/var/log/prosody:rw
|
||||||
|
- ./data/var:/var/lib/prosody:rw
|
||||||
|
restart: unless-stopped
|
@ -12,9 +12,12 @@
|
|||||||
-- The only thing left to do is rename this file to remove the .dist ending, and fill in the
|
-- The only thing left to do is rename this file to remove the .dist ending, and fill in the
|
||||||
-- blanks. Good luck, and happy Jabbering!
|
-- blanks. Good luck, and happy Jabbering!
|
||||||
|
|
||||||
daemonize = false;
|
daemonize = false
|
||||||
|
pidfile = "/var/run/prosody/prosody.pid"
|
||||||
|
|
||||||
pidfile = "/var/run/prosody/prosody.pid";
|
cross_domain_bosh = true
|
||||||
|
consider_bosh_secure = true
|
||||||
|
consider_websocket_secure = true
|
||||||
|
|
||||||
---------- Server-wide settings ----------
|
---------- Server-wide settings ----------
|
||||||
-- Settings in this section apply to the whole server and are the default settings
|
-- Settings in this section apply to the whole server and are the default settings
|
||||||
@ -24,11 +27,11 @@ pidfile = "/var/run/prosody/prosody.pid";
|
|||||||
-- for the server. Note that you must create the accounts separately
|
-- for the server. Note that you must create the accounts separately
|
||||||
-- (see https://prosody.im/doc/creating_accounts for info)
|
-- (see https://prosody.im/doc/creating_accounts for info)
|
||||||
-- Example: admins = { "user1@example.com", "user2@example.net" }
|
-- Example: admins = { "user1@example.com", "user2@example.net" }
|
||||||
admins = { }
|
admins = { "admin@localhost" }
|
||||||
|
|
||||||
-- Enable use of libevent for better performance under high load
|
-- Enable use of libevent for better performance under high load
|
||||||
-- For more information see: https://prosody.im/doc/libevent
|
-- For more information see: https://prosody.im/doc/libevent
|
||||||
--use_libevent = true
|
use_libevent = true
|
||||||
|
|
||||||
-- Prosody will always look in its source directory for modules, but
|
-- Prosody will always look in its source directory for modules, but
|
||||||
-- this option allows you to specify additional locations where Prosody
|
-- this option allows you to specify additional locations where Prosody
|
||||||
@ -65,16 +68,16 @@ modules_enabled = {
|
|||||||
"time"; -- Let others know the time here on this server
|
"time"; -- Let others know the time here on this server
|
||||||
"ping"; -- Replies to XMPP pings with pongs
|
"ping"; -- Replies to XMPP pings with pongs
|
||||||
"register"; -- Allow users to register on this server using a client and change passwords
|
"register"; -- Allow users to register on this server using a client and change passwords
|
||||||
--"mam"; -- Store messages in an archive and allow users to access it
|
"mam"; -- Store messages in an archive and allow users to access it
|
||||||
--"csi_simple"; -- Simple Mobile optimizations
|
"csi_simple"; -- Simple Mobile optimizations
|
||||||
|
|
||||||
-- Admin interfaces
|
-- Admin interfaces
|
||||||
"admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
|
"admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
|
||||||
--"admin_telnet"; -- Opens telnet console interface on localhost port 5582
|
--"admin_telnet"; -- Opens telnet console interface on localhost port 5582
|
||||||
|
|
||||||
-- HTTP modules
|
-- HTTP modules
|
||||||
--"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
|
"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_files"; -- Serve static files from a directory over HTTP
|
||||||
|
|
||||||
-- Other specific functionality
|
-- Other specific functionality
|
||||||
|
@ -2,8 +2,7 @@ prosody:
|
|||||||
image: prosody/prosody
|
image: prosody/prosody
|
||||||
ports:
|
ports:
|
||||||
- "5222:5222"
|
- "5222:5222"
|
||||||
- "5269:5269"
|
- "5280:5280"
|
||||||
- "5347:5347"
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/etc:/etc/prosody:ro
|
- ./data/etc:/etc/prosody:ro
|
||||||
- ./data/log:/var/log/prosody:rw
|
- ./data/log:/var/log/prosody:rw
|
||||||
|
9
prosody/nginx.conf
Normal file
9
prosody/nginx.conf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
stream {
|
||||||
|
upstream backend {
|
||||||
|
server xmpp.example.com:5222;
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
listen 5222;
|
||||||
|
proxy_pass backend:5222;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user