mirror of
https://github.com/internetee/epp_proxy.git
synced 2025-08-21 06:44:21 +02:00
Send headers in both formats
This commit is contained in:
parent
a636eba23f
commit
a4b7a4a041
2 changed files with 5 additions and 3 deletions
|
@ -173,6 +173,8 @@ state_from_socket(Socket, State) ->
|
||||||
epp_certs:headers_from_cert(PeerCert),
|
epp_certs:headers_from_cert(PeerCert),
|
||||||
Headers = [{"SSL_CLIENT_CERT", SSL_CLIENT_CERT},
|
Headers = [{"SSL_CLIENT_CERT", SSL_CLIENT_CERT},
|
||||||
{"SSL_CLIENT_S_DN_CN", SSL_CLIENT_S_DN_CN},
|
{"SSL_CLIENT_S_DN_CN", SSL_CLIENT_S_DN_CN},
|
||||||
|
{"SSL-CLIENT-CERT", SSL_CLIENT_CERT},
|
||||||
|
{"SSL-CLIENT-S-DN-CN", SSL_CLIENT_S_DN_CN},
|
||||||
{"User-Agent", <<"EPP proxy">>},
|
{"User-Agent", <<"EPP proxy">>},
|
||||||
{"X-Forwarded-for", epp_util:readable_ip(PeerIp)}],
|
{"X-Forwarded-for", epp_util:readable_ip(PeerIp)}],
|
||||||
NewState = State#state{socket=Socket, headers=Headers},
|
NewState = State#state{socket=Socket, headers=Headers},
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
{dev_mode, true},
|
{dev_mode, true},
|
||||||
{tcp_port, 3333},
|
{tcp_port, 3333},
|
||||||
{tls_port, 700},
|
{tls_port, 700},
|
||||||
{epp_session_url, "https://registry.test/epp/session/"},
|
{epp_session_url, "http://httpd:3000/epp/session/"},
|
||||||
{epp_command_url, "https://registry.test/epp/command/"},
|
{epp_command_url, "http://httpd:3000/epp/command/"},
|
||||||
{epp_error_url, "https://registry.test/epp/error/"},
|
{epp_error_url, "http://httpd:3000/epp/error/"},
|
||||||
{cacertfile_path, "/opt/ca/certs/ca.crt.pem"},
|
{cacertfile_path, "/opt/ca/certs/ca.crt.pem"},
|
||||||
{certfile_path, "/opt/ca/certs/apache.crt"},
|
{certfile_path, "/opt/ca/certs/apache.crt"},
|
||||||
{keyfile_path, "/opt/ca/private/apache.key"},
|
{keyfile_path, "/opt/ca/private/apache.key"},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue