mirror of
https://github.com/internetee/epp_proxy.git
synced 2025-08-21 14:49:33 +02:00
Merge 9a63f15b9d
into 99b714676b
This commit is contained in:
commit
9230d7e7ea
5 changed files with 9 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -20,3 +20,5 @@ rebar3.crashdump
|
||||||
|
|
||||||
config/dev.config
|
config/dev.config
|
||||||
apps/epp_proxy/priv/test_backend_app/pidfile
|
apps/epp_proxy/priv/test_backend_app/pidfile
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
|
|
@ -3,7 +3,7 @@ FROM debian:buster-slim
|
||||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||||
COPY ./docker/apt/sources.list /etc/apt/
|
COPY ./docker/apt/sources.list /etc/apt/
|
||||||
|
|
||||||
RUN apt-get update && apt-get -t buster install -y -qq wget \
|
RUN apt-get update && apt-get install -y -qq wget \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
@ -31,6 +31,8 @@ RUN apt-get update && apt-get install -y \
|
||||||
libssl1.1=* \
|
libssl1.1=* \
|
||||||
perl-base=* \
|
perl-base=* \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
|
net-tools \
|
||||||
|
iproute2 \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ init(Port) ->
|
||||||
{active, false}, {reuseaddr, true},
|
{active, false}, {reuseaddr, true},
|
||||||
{verify, verify_peer}, {depth, 1},
|
{verify, verify_peer}, {depth, 1},
|
||||||
{cacertfile, ca_cert_file()}, {certfile, cert_file()},
|
{cacertfile, ca_cert_file()}, {certfile, cert_file()},
|
||||||
{keyfile, key_file()}],
|
{keyfile, key_file()}, inet6],
|
||||||
Options = handle_crl_check_options(DefaultOptions),
|
Options = handle_crl_check_options(DefaultOptions),
|
||||||
{ok, ListenSocket} = ssl:listen(Port, Options),
|
{ok, ListenSocket} = ssl:listen(Port, Options),
|
||||||
gen_server:cast(self(), accept),
|
gen_server:cast(self(), accept),
|
||||||
|
@ -33,6 +33,7 @@ init(Port) ->
|
||||||
#state{socket = ListenSocket, port = Port,
|
#state{socket = ListenSocket, port = Port,
|
||||||
options = Options}}.
|
options = Options}}.
|
||||||
|
|
||||||
|
|
||||||
%% Acceptor has only one state that goes in a loop:
|
%% Acceptor has only one state that goes in a loop:
|
||||||
%% 1. Listen for a connection from anyone.
|
%% 1. Listen for a connection from anyone.
|
||||||
%% 2. Ask supervisor to return a worker.
|
%% 2. Ask supervisor to return a worker.
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
{epp_command_url, "https://registry.test/epp/command/"},
|
{epp_command_url, "https://registry.test/epp/command/"},
|
||||||
{epp_error_url, "https://registry.test/epp/error/"},
|
{epp_error_url, "https://registry.test/epp/error/"},
|
||||||
%% Path to root CA that should check the client certificates.
|
%% Path to root CA that should check the client certificates.
|
||||||
{cacertfile_path, "/opt/shared/ca/certs/ca.crt.pem"},
|
{cacertfile_path, "/opt/ca/certs/ca.crt.pem"},
|
||||||
%% Path to server's certficate file.
|
%% Path to server's certficate file.
|
||||||
{certfile_path, "/opt/shared/ca/certs/cert.pem"},
|
{certfile_path, "/opt/shared/ca/certs/cert.pem"},
|
||||||
|
|
||||||
|
|
|
@ -4,3 +4,4 @@
|
||||||
|
|
||||||
+K true
|
+K true
|
||||||
+A30
|
+A30
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue