Skip to content

Instantly share code, notes, and snippets.

View abdulhamidalsalman's full-sized avatar

Abdulhamid Ibrahim Alsalman abdulhamidalsalman

View GitHub Profile
# Run as your work user
# Make sure you are not using root
# Disable sudo timeout
sudo sh -c 'echo "\nDefaults timestamp_timeout=-1">>/etc/sudoers'
# Projects root directory
ODOO_PROJECTS_DIR="projects"
# Odoo version
ODOO_VERSION="8.0"
#!/bin/bash
sudo apt-get install nginx -y
IPADR=`ifconfig eth0 2>/dev/null|awk '/inet addr:/ {print $2}'|sed 's/addr://'`
nginx_file=/etc/nginx/sites-available/$IPADR
sudo su root -c "echo 'upstream openerpweb {
server 0.0.0.0:8069 weight=1 fail_timeout=300s;
}
upstream openerpweb-im {
server 0.0.0.0:8072 weight=1 fail_timeout=300s;
}
@abdulhamidalsalman
abdulhamidalsalman / nginx_odoo_letsencrypt.sh
Created July 30, 2016 13:36
Odoo Nginx Reverse Proxy automation with TLS using Let's Encrypt
#!/bin/bash
#--------------------------------------------------
# Locale changing for localization
#--------------------------------------------------
echo "*********************************"
echo "* *"
echo "* Changing Locales *"
echo "* *"
echo "*********************************"
# Configure timezone and locale
@abdulhamidalsalman
abdulhamidalsalman / install
Created July 30, 2016 13:36 — forked from sniper7kills/install
Odoo Install with reverse Proxy
#!/bin/bash
################################################################################
# Script for Installation: ODOO Saas4/Trunk server on Ubuntu 14.04 LTS
# Author: André Schenkels, ICTSTUDIO 2014
# Updated by: Will Gaudette, CMIT 14MAR15
#-------------------------------------------------------------------------------
#
# This script will install ODOO Server and a reverse Nginx proxy on a
# clean Ubuntu 14.04 Server
#-------------------------------------------------------------------------------