Net-AS2-PSGI
view release on metacpan or search on metacpan
debian/rules
debian/source/format
debian/upstream/metadata
debian/watch
dist.ini
examples/as2-server/config.xml
examples/as2-server/partnerships.xml
examples/as2.conf
examples/as2.psgi
examples/nginx-as2-ssl.conf
examples/starman_as2.service
lib/Net/AS2/PSGI.pm
lib/Net/AS2/PSGI/File.pm
lib/Net/AS2/PSGI/FileHandler.pm
lib/Net/AS2/PSGI/StateHandler.pm
perlcritic.rc
t/01-create-certificates.t
t/05-api-errors.t
t/10-view-partnerships.t
t/20-sync-A-to-B.t
t/30-async-B-to-A.t
examples/nginx-as2-ssl.conf view on Meta::CPAN
ssl_protocols TLSv1.2;
ssl_ciphers 'ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:AES256-GCM-SHA384:AES256-SHA256';
ssl_prefer_server_ciphers on;
location / {
if ($request_method != POST) {
return 404;
}
root /var/www/as2/htdocs
try_files /as2_down @starman;
}
location /view/ {
proxy_pass http://127.0.0.1:4080;
}
location @starman {
proxy_pass http://127.0.0.1:4080;
}
}
examples/starman_as2.service view on Meta::CPAN
[Unit]
Description=Net::AS2 Service
After=network.target
[Service]
Type=forking
PIDFile=/var/www/as2/starman-as2.pid
ExecStart=/usr/bin/starman -D --env development -MNet::AS2::PSGI\
--pid /var/www/as2/starman-as2.pid\
--listen 127.0.0.1:4080 --listen 192.168.0.1:4080\
--workers 2\
--access-log /var/www/as2/logs/access-starman-eec-as2.log --error-log /var/www/as2/logs/error-starman-eec-as2.log\
/var/www/as2/as2.psgi
ExecReload=/sbin/start-stop-daemon --quiet --stop -s HUP --pidfile /var/www/as2/starman-as2.pid
ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /var/www/as2/starman-as2.pid
TimeoutStopSec=5
KillMode=mixed
[Install]
WantedBy=multi-user.target
lib/Net/AS2/PSGI.pm view on Meta::CPAN
return $request->new_response(HTTP_BAD_REQUEST);
}
1;
=head1 EXAMPLES
This module has an /examples directory. It contains an example PSGI
application, its base configuration file, a systemd service for
starman and an nginx conf file with SSL configurations. There is also
some basic configuration files to get you started with partnering up
with an instance of L<https://github.com/phax/as2-server>.
The module's /t testing directory, includes test cases that forks AS2
L<Plack::Test> applications, and then tests transferring files between
using AS2 synchronous and AS2 asynchronous transfer modes.
=head1 SEE ALSO
L<Net::AS2>, L<Net::AS2::PSGI::FileHandler>, L<Net::AS2::PSGI::StateHandler>
( run in 1.549 second using v1.01-cache-2.11-cpan-e93a5daba3e )