openbsd-ports/net/ejabberd/patches/patch-src_ejabberd_cfg_example
2010-04-11 10:07:10 +00:00

55 lines
1.7 KiB
Plaintext

$OpenBSD: patch-src_ejabberd_cfg_example,v 1.3 2010/04/11 10:07:10 sthen Exp $
--- src/ejabberd.cfg.example.orig Fri Mar 12 11:40:41 2010
+++ src/ejabberd.cfg.example Sat Mar 13 12:41:08 2010
@@ -115,7 +115,7 @@
%% certificate, specify the full path to the
%% file and uncomment this line:
%%
- %%{certfile, "/path/to/ssl.pem"}, starttls,
+ {certfile, "${SYSCONFDIR}/ejabberd/myserver.pem"}, starttls,
{access, c2s},
{shaper, c2s_shaper},
@@ -125,12 +125,12 @@
%%
%% To enable the old SSL connection method on port 5223:
%%
- %%{5223, ejabberd_c2s, [
- %% {access, c2s},
- %% {shaper, c2s_shaper},
- %% {certfile, "/path/to/ssl.pem"}, tls,
- %% {max_stanza_size, 65536}
- %% ]},
+{5223, ejabberd_c2s, [
+ {access, c2s},
+ {shaper, c2s_shaper},
+ {certfile, "${SYSCONFDIR}/ejabberd/myserver.pem"}, tls,
+ {max_stanza_size, 65536}
+ ]},
{5269, ejabberd_s2s_in, [
{shaper, s2s_shaper},
@@ -172,18 +172,18 @@
%% Allowed values are: true or false.
%% You must specify a certificate file.
%%
-%%{s2s_use_starttls, true}.
+{s2s_use_starttls, true}.
%%
%% s2s_certfile: Specify a certificate file.
%%
-%%{s2s_certfile, "/path/to/ssl.pem"}.
+{s2s_certfile, "${SYSCONFDIR}/ejabberd/myserver.pem"}.
%%
%% domain_certfile: Specify a different certificate for each served hostname.
%%
-%%{domain_certfile, "example.org", "/path/to/example_org.pem"}.
-%%{domain_certfile, "example.com", "/path/to/example_com.pem"}.
+%%{domain_certfile, "example.org", "${SYSCONFDIR}/ejabberd/example_org.pem"}.
+%%{domain_certfile, "example.com", "${SYSCONFDIR}/ejabberd/example_com.pem"}.
%%
%% S2S whitelist or blacklist