Skip to content

Instantly share code, notes, and snippets.

@elfeffe
Last active February 1, 2017 11:38
Show Gist options
  • Save elfeffe/4b770c3bb501937e2b5a7e00dc1ead7a to your computer and use it in GitHub Desktop.
Save elfeffe/4b770c3bb501937e2b5a7e00dc1ead7a to your computer and use it in GitHub Desktop.
Odoo 9 Ubuntu 14.04 (with upgrade to 10)
Odoo 9
https://www.linode.com/docs/websites/cms/install-odoo-9-erp-on-ubuntu-14-04
To change to 10 just need to pull master from GIT
git clone https://github.com/odoo/odoo.git
To install nginx as a proxy
upstream oddo {
server 127.0.0.1:8069;
}
server {
listen 80 default;
server_name your-odoo-site.com;
access_log /var/log/nginx/oddo.access.log;
error_log /var/log/nginx/oddo.error.log;
proxy_buffers 16 64k;
proxy_buffer_size 128k;
location / {
proxy_pass http://oddo;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
location ~* /web/static/ {
proxy_cache_valid 200 60m;
proxy_buffering on;
expires 864000;
proxy_pass http://oddo;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment