p.p1 { margin: 0; font: 12px "Andale Mono"; color: rgba(40, 254, 20, 1); background-color: rgba(0, 0, 0, 0.9) }
p.p2 { margin: 0; font: 12px "Andale Mono"; color: rgba(40, 254, 20, 1); background-color: rgba(0, 0, 0, 0.9); min-height: 14px }
p.p3 { margin: 0; font: 12px "Andale Mono"; color: rgba(52, 188, 38, 1); background-color: rgba(0, 0, 0, 0.9) }
p.p4 { margin: 0; font: 12px "Andale Mono"; color: rgba(82, 48, 225, 1); background-color: rgba(0, 0, 0, 0.9) }
p.p5 { margin: 0; font: 12px "Andale Mono"; color: rgba(52, 187, 200, 1); background-color: rgba(0, 0, 0, 0.9) }
p.p6 { margin: 0; font: 12px "Andale Mono"; color: rgba(195, 55, 32, 1); background-color: rgba(0, 0, 0, 0.9) }
span.s1 { font-variant-ligatures: no-common-ligatures; color: rgba(205, 121, 35, 1) }
span.s2 { font-variant-ligatures: no-common-ligatures }
span.s3 { font-variant-ligatures: no-common-ligatures; color: rgba(52, 188, 38, 1) }
span.s4 { font-variant-ligatures: no-common-ligatures; color: rgba(40, 254, 20, 1) }
span.s5 { font-variant-ligatures: no-common-ligatures; color: rgba(52, 187, 200, 1) }
span.s6 { font-variant-ligatures: no-common-ligatures; color: rgba(195, 55, 32, 1) }

upstream erp_server {

server 127.0.0.1:9021 weight=1 fail_timeout=300s;

}

server {

# listen 80;

listen 443;

server_name www.xxxx.com;

#server_name api.erp.heqiauto.com

# Specifies the maximum accepted body size of a client request,

# as indicated by the request header Content-Length.

client_max_body_size 200m;

# ssl log files

access_log /var/log/nginx/access.log main;

error_log /var/log/nginx/error.log;

error_page 500 502 503 504 /50x.html;

charset utf-8;

# increase proxy buffer to handle some OpenERP web requests

proxy_buffers 16 64k;

proxy_buffer_size 128k;

#gzip setting

gzip on;

gzip_disable "MSIE [1-6]\.";

gzip_vary on;

gzip_proxied any;

gzip_comp_level 9;

gzip_buffers 16 8k;

gzip_min_length 2048;

gzip_http_version 1.1;

gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/x-font-ttf;

location / {

proxy_pass http://127.0.0.1:9021/;

proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;

# set headers

proxy_set_header Host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;

# by default, do not forward anything

proxy_redirect off;

}

proxy_connect_timeout 5000s;

proxy_read_timeout 5000s;

proxy_send_timeout 5000s;

ssl on;

ssl_certificate /etc/nginx/cert/api.pem;

ssl_certificate_key /etc/nginx/cert/api.key;

ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

#ssl_protocols SSLv2 SSLv3 TLSv1;

ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;

ssl_prefer_server_ciphers on;

# cache some static data in memory for 60mins.

# under heavy load this should relieve stress on the OpenERP web interface a bit.

#location ~* /web/static/ {

# proxy_cache_valid 200 60m;

# proxy_buffering on;

# expires 864000;

# proxy_pass http://127.0.0.1:8059/;

# #proxy_pass http://openerpserver;

#}

}

p.p1 { margin: 0; font: 12px "Andale Mono"; color: rgba(40, 254, 20, 1); background-color: rgba(0, 0, 0, 0.9) }
p.p2 { margin: 0; font: 12px "Andale Mono"; color: rgba(40, 254, 20, 1); background-color: rgba(0, 0, 0, 0.9); min-height: 14px }
p.p3 { margin: 0; font: 12px "Andale Mono"; color: rgba(82, 48, 225, 1); background-color: rgba(0, 0, 0, 0.9) }
p.p4 { margin: 0; font: 12px "Andale Mono"; color: rgba(52, 187, 200, 1); background-color: rgba(0, 0, 0, 0.9) }
span.s1 { font-variant-ligatures: no-common-ligatures }
span.s2 { font-variant-ligatures: no-common-ligatures; color: rgba(52, 187, 200, 1) }
span.s3 { font-variant-ligatures: no-common-ligatures; color: rgba(40, 254, 20, 1) }
span.s4 { font-variant-ligatures: no-common-ligatures; color: rgba(195, 55, 32, 1) }

odoo-nginx 配置的更多相关文章

  1. 【转】odoo nginx 配置

    ## OpenERP backend ## upstream odoo { server 127.0.0.1:8069 weight=1 fail_timeout=0; } upstream odoo ...

  2. odoo 11 配置nginx反向代理

    第一步 安装nginx 和 certbot    具体步骤可以参考这篇文章的第6,7步. 第二步 配置nginx映射到odoo网站的文件,主要有2个,文件中的cloudapp.top是我们自己的域名, ...

  3. nginx配置反向代理或跳转出现400问题处理记录

    午休完上班后,同事说测试站点访问接口出现400 Bad Request  Request Header Or Cookie Too Large提示,心想还好是测试服务器出现问题,影响不大,不过也赶紧上 ...

  4. Windos环境用Nginx配置反向代理和负载均衡

    Windos环境用Nginx配置反向代理和负载均衡 引言:在前后端分离架构下,难免会遇到跨域问题.目前的解决方案大致有JSONP,反向代理,CORS这三种方式.JSONP兼容性良好,最大的缺点是只支持 ...

  5. Windows下Nginx配置SSL实现Https访问(包含证书生成)

    Vincent.李   Windows下Nginx配置SSL实现Https访问(包含证书生成) Windows下Nginx配置SSL实现Https访问(包含证书生成) 首先要说明为什么要实现https ...

  6. Nginx 配置简述

    不论是本地开发,还是远程到 Server 开发,还是给提供 demo 给人看效果,我们时常需要对 Nginx 做配置,Nginx 的配置项相当多,如果考虑性能配置起来会比较麻烦.不过,我们往往只是需要 ...

  7. Nginx配置详解

    序言 Nginx是lgor Sysoev为俄罗斯访问量第二的rambler.ru站点设计开发的.从2004年发布至今,凭借开源的力量,已经接近成熟与完善. Nginx功能丰富,可作为HTTP服务器,也 ...

  8. Nginx配置Https

    1.申请证书: https://console.qcloud.com/ssl?utm_source=yingyongbao&utm_medium=ssl&utm_campaign=qc ...

  9. nginx配置为windows服务中的坑

    网上搜索“nginx 配置为windows服务”,很容易搜索到使用windows server warpper来配置,于是按照网上的方法我从github上的链接下载了1.17版本,前面都很顺利,很容易 ...

  10. 【nginx配置】nginx做非80端口转发

    一个场景 最近在使用PHP重写一个使用JAVA写的项目,因为需要查看之前的项目,所以要在本地搭建一个Tomcat来跑JAVA的项目.搭建成功后,因为Tomcat监听的端口是8080,因此,访问的URL ...

随机推荐

  1. java 反射随记

    记录一下有关 Class 对象的相关方法: 1.获取 Class 对象的三个方法: ⑴ 使用 Class.forName("全限定类名") ,参数是该类的全限定类名,可拓展性强: ...

  2. JavaSwing 船只停靠管理可视化(四)

    JavaSwing 船只停靠管理可视化(一) JavaSwing 船只停靠管理可视化(二) JavaSwing 船只停靠管理可视化(三) JavaSwing 船只停靠管理可视化(四) JavaSwin ...

  3. [ABP教程]第七章 作者:数据库集成

    Web开发教程7 作者:数据库集成 关于此教程 在这个教程系列中,你将要构建一个基于ABP框架的应用程序 Acme.BookStore.这个应用程序被用于甘丽图书页面机器作者.它将用以下开发技术: E ...

  4. uni-app 页面跳转的两种方法

    1.navigator  标签 <navigator url="../component/classdetails/classdetails"> <view cl ...

  5. NIO基础操作

    原文链接http://zhhll.icu/2020/05/18/java%E5%9F%BA%E7%A1%80/IO/NIO%E5%9F%BA%E6%9C%AC%E6%93%8D%E4%BD%9C/ N ...

  6. PHP 导入Excel数据 到数据库

    /** * 导入excel * @throws \PHPExcel_Exception * @throws \PHPExcel_Reader_Exception */ public function ...

  7. python学习笔记 | PyCharm创建文件时自动添加头文件

    File Settings Editor File and Code Templates Python Script 然后在右边的框中写入信息就可以啦: # -*- coding: utf-8 -*- ...

  8. 🎉 Element UI for Vue 3.0 来了!

    第一个使用 TypeScript + Vue 3.0 Composition API 重构的组件库 Element Plus 发布了 ~ 2016 年 3 月 13 日 Element 悄然诞生,经历 ...

  9. select 里面带的值居然是估算的?

    mysql> set profiling=1;Query OK, 0 rows affected, 1 warning (0.07 sec) mysql> select count(1) ...

  10. ps -p 进程号

    [root@ma ~]# ps -p 1 PID TTY TIME CMD 1 ? 00:00:01 init