changeset 58:41d76bd6268a

add doc for ssl
author Vadim Filimonov <fffilimonov@yandex.ru>
date Tue, 30 Nov 2021 09:32:14 +0200
parents d5ee58e3abe5
children f7665d62c5cd
files doc/install.txt doc/ssl.txt nginx/ubuntu.nabble.com
diffstat 3 files changed, 35 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/doc/install.txt	Tue Oct 19 16:43:16 2021 -0600
+++ b/doc/install.txt	Tue Nov 30 09:32:14 2021 +0200
@@ -26,7 +26,7 @@
 
 Fix config
 vim nabble/conf/Init.luan
-replace me.nabble.com with server domain
+replace me.nabble.com with your domain (example for ubuntu.nabble.com)
 configure MailHome.getSmtpServer with your smtp provider and pop3 with name/password for mailboxes
 
 Start:
@@ -36,4 +36,4 @@
 ./serve.sh
 
 Visit in browser:
-http://domain/free-forum.html
+http://ubuntu.nabble.com:8080/free-forum.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/doc/ssl.txt	Tue Nov 30 09:32:14 2021 +0200
@@ -0,0 +1,20 @@
+Fix config
+vim nabble/conf/Init.luan
+replace ubuntu.nabble.com:8080 with your domain (example for ubuntu.nabble.com)
+
+Configure nginx
+apt-get install nginx
+change ubuntu.nabble.com with your domain
+cp nabble/nginx/ubuntu.nabble.com /etc/nginx/sites-available/
+ln -s /etc/nginx/sites-available/ubuntu.nabble.com /etc/nginx/sites-enabled/
+/etc/init.d/nginx restart
+
+Check nginx
+run nabble: ./rever.sh
+open in browser http://ubuntu.nabble.com/free-forum.html
+
+SSL
+snap install --classic certbot
+ln -s /snap/bin/certbot /usr/bin/certbot
+certbot --nginx -d ubuntu.nabble.com
+open in browser https://ubuntu.nabble.com/free-forum.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nginx/ubuntu.nabble.com	Tue Nov 30 09:32:14 2021 +0200
@@ -0,0 +1,13 @@
+server {
+    listen 80;
+    listen [::]:80;
+    server_name ubuntu.nabble.com;
+
+    location / {
+        add_header Access-Control-Allow-Origin *;
+        proxy_pass http://127.0.0.1:8080;
+        proxy_set_header Host $http_host;
+        proxy_set_header X-Forwarded-Proto $scheme;
+        proxy_set_header X-Real-IP $remote_addr;
+    }
+}