[ADD]Hiisama images and definition for host
This commit is contained in:
parent
3871fb1471
commit
71cd4e3371
12
hosts/hiisama/docker-compose.yml
Normal file
12
hosts/hiisama/docker-compose.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Hiisama own images
|
||||||
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
# Proxy
|
||||||
|
nginx:
|
||||||
|
extends:
|
||||||
|
file: ../../nginx/base.yml
|
||||||
|
service: nginx
|
||||||
|
build: ./nginx
|
||||||
|
image: registry.yaltik.net/nginx:hiisama
|
5
hosts/hiisama/nginx/Dockerfile
Normal file
5
hosts/hiisama/nginx/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM registry.yaltik.net/nginx:yaltik
|
||||||
|
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
||||||
|
|
||||||
|
# Copy templates and usefull files
|
||||||
|
COPY hiisama-odoo.conf /etc/nginx/templates/
|
85
hosts/hiisama/nginx/hiisama-odoo.conf
Normal file
85
hosts/hiisama/nginx/hiisama-odoo.conf
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
# GOLEM
|
||||||
|
upstream ${GOLEM_SERVICE}server {
|
||||||
|
server ${GOLEM_SERVICE}:8069 fail_timeout=300s;
|
||||||
|
}
|
||||||
|
|
||||||
|
upstream ${GOLEM_SERVICE}longpoll {
|
||||||
|
server ${GOLEM_SERVICE}:8072 fail_timeout=300s;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name ${GOLEM_SERVER_NAMES};
|
||||||
|
return 301 https://${DOLLSIGN}host${DOLLSIGN}request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name ${GOLEM_SERVER_NAMES};
|
||||||
|
client_max_body_size 200M;
|
||||||
|
gzip on;
|
||||||
|
gzip_min_length 256;
|
||||||
|
gzip_types text/plain application/x-javascript application/json text/xml text/css;
|
||||||
|
location / {
|
||||||
|
proxy_pass http://${GOLEM_SERVICE}server;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_read_timeout 300;
|
||||||
|
proxy_set_header Host ${DOLLSIGN}http_host;
|
||||||
|
proxy_set_header X-Real-IP ${DOLLSIGN}remote_addr;
|
||||||
|
proxy_set_header X-Forward-For ${DOLLSIGN}proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
|
proxy_set_header X-Forwarded-Host ${DOLLSIGN}http_host;
|
||||||
|
proxy_redirect off;
|
||||||
|
}
|
||||||
|
location /longpolling {
|
||||||
|
proxy_pass http://${GOLEM_SERVICE}longpoll;
|
||||||
|
proxy_set_header Host ${DOLLSIGN}http_host;
|
||||||
|
proxy_set_header X-Real-IP ${DOLLSIGN}remote_addr;
|
||||||
|
proxy_set_header X-Forward-For ${DOLLSIGN}proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
|
proxy_set_header X-Forwarded-Host ${DOLLSIGN}http_host;
|
||||||
|
proxy_redirect off;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Odoov10
|
||||||
|
upstream ${ODOO10_SERVICE}server {
|
||||||
|
server ${ODOO10_SERVICE}:8069 fail_timeout=300s;
|
||||||
|
}
|
||||||
|
|
||||||
|
upstream ${ODOO10_SERVICE}longpoll {
|
||||||
|
server ${ODOO10_SERVICE}:8072 fail_timeout=300s;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name ${ODOO10_SERVER_NAMES};
|
||||||
|
return 301 https://${DOLLSIGN}host${DOLLSIGN}request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name ${ODOO10_SERVER_NAMES};
|
||||||
|
client_max_body_size 200M;
|
||||||
|
gzip on;
|
||||||
|
gzip_min_length 256;
|
||||||
|
gzip_types text/plain application/x-javascript application/json text/xml text/css;
|
||||||
|
location / {
|
||||||
|
proxy_pass http://${ODOO10_SERVICE}server;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_read_timeout 300;
|
||||||
|
proxy_set_header Host ${DOLLSIGN}host;
|
||||||
|
proxy_set_header X-Real-IP ${DOLLSIGN}remote_addr;
|
||||||
|
proxy_set_header X-Forward-For ${DOLLSIGN}proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
|
proxy_redirect off;
|
||||||
|
}
|
||||||
|
location /longpolling {
|
||||||
|
proxy_pass http://${ODOO10_SERVICE}longpoll;
|
||||||
|
proxy_set_header Host ${DOLLSIGN}host;
|
||||||
|
proxy_set_header X-Real-IP ${DOLLSIGN}remote_addr;
|
||||||
|
proxy_set_header X-Forward-For ${DOLLSIGN}proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
|
proxy_redirect off;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user