MuruganChinnaamy / cloud

0 stars 0 forks source link

Domain initialization #3

Closed MuruganChinnaamy closed 4 years ago

MuruganChinnaamy commented 4 years ago

https://www.howtoforge.com/tutorial/how-to-install-postgresql-and-phppgadmin-on-ubuntu-1804/

https://linuxize.com/post/how-to-deploy-odoo-11-on-ubuntu-18-04/

mkdir opt cd opt

git clone https://www.github.com/odoo/odoo --depth 1 --branch 11.0 odoo11/

python3 -m venv odoo11-venv

source opt/odoo11-venv/bin/activate

pip3 install wheel

pip3 install -r odoo11/requirements.txt

sudo apt-get install python3-pip

pip3 install Babel decorator docutils ebaysdk feedparser gevent greenlet html2text Jinja2 lxml Mako MarkupSafe mock num2words ofxparse passlib Pillow psutil psycogreen pydot pyparsing PyPDF2 pyserial python-dateutil python-openid pytz pyusb PyYAML qrcode reportlab requests six suds-jurko vatnumber vobject Werkzeug XlsxWriter xlwt xlrd

sudo apt-get install libpq-dev pip3 install psycopg2

pip3 install Werkzeug==0.11.15

Configure Nginx as a SSL termination proxy #

If you want to use Nginx as a SSL termination proxy make sure that you have met the following prerequisites:

You have a domain name pointing to your public server IP. In this tutorial we will use palacode.in

sudo apt update

apt-get install net-tools

sudo netstat -tulpn

kill appache server

sudo kill -2

sudo fuser -k 80/tcp

sudo fuser -k 443/tcp

sudo ufw allow 'Nginx Full'

sudo ufw status

if deactive below do it. 

sudo ufw enable
sudo ufw default deny

And I then do:

sudo iptables -L

Secure Nginx with Let's Encrypt on Ubuntu 18.04

sudo apt install certbot

sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048

sudo certbot certonly --agree-tos --email ec.murugan001@gmail.com --webroot -w /var/lib/letsencrypt/ -d palacode.in -d www.palacode.in

MuruganChinnaamy commented 4 years ago

Selection_029

MuruganChinnaamy commented 4 years ago

sudo ufw status Status: inactive root@odoo:/etc/nginx/sites-enabled# sudo ufw enable

MuruganChinnaamy commented 4 years ago

root@odoo:/etc/nginx/sites-enabled# sudo ufw status Status: active

To Action From


Nginx Full ALLOW Anywhere
Nginx HTTP ALLOW Anywhere
Nginx Full (v6) ALLOW Anywhere (v6)
Nginx HTTP (v6) ALLOW Anywhere (v6)

MuruganChinnaamy commented 4 years ago

murugan@murugan:~$ ssh root@165.22.213.250 ssh: connect to host 165.22.213.250 port 22: Connection timed out

sudo ufw allow 22

murugan@murugan:~$ ssh root@165.22.213.250 Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-99-generic x86_64)

0 packages can be updated. 0 updates are security updates.

Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings

Last login: Sun May 17 08:25:37 2020 root@odoo:~#

MuruganChinnaamy commented 3 years ago

https://www.cloudbooklet.com/install-odoo-13-on-ubuntu-18-04-with-nginx-google-cloud/

MuruganChinnaamy commented 3 years ago

Port Enable : sudo ufw allow 8088