From f458ee8fda00cf290e48976654d2096a6f726a92 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 18 Sep 2019 15:13:17 +0100 Subject: add example apache2 config file for rest_api --- docs/rest_api/apache2 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 docs/rest_api/apache2 (limited to 'docs') diff --git a/docs/rest_api/apache2 b/docs/rest_api/apache2 new file mode 100644 index 00000000..e6fb6759 --- /dev/null +++ b/docs/rest_api/apache2 @@ -0,0 +1,20 @@ +# run the bellow command (as root) prior +# $ a2enmod ssl proxy proxy_http + +LoadModule ssl_module modules/mod_ssl.so +LoadModule proxy_module modules/mod_proxy.so +LoadModule proxy_http_module modules/mod_proxy_http.so + +Listen 5000 + + ServerName example.com + + SSLEngine on + SSLCertificateFile "/etc/letsencrypt/live/example.com/fullchain.pem" + SSLCertificateKeyFile "/etc/letsencrypt/live/example.com/privkey.pem" + + ProxyRequests off + ProxyPass / http://[::1]:5001/ + ProxyPassReverse / http://[::1]:5001 + ProxyPreserveHost on + -- cgit v1.3.1-10-gc9f91