Define editable files as .sample

This commit is contained in:
Sergio Morillo 2021-10-29 20:06:16 +02:00
parent 9085087dc8
commit ae5d7f66ba
3 changed files with 73 additions and 4 deletions

View file

View file

@ -1,7 +1,7 @@
#!/bin/sh
set -a
source ../.env
source ./.env
if [ ! "$(docker ps -q -f name=^/tryton_bash_60$)" ]; then
if [ "$(docker ps -aq -f status=exited -f name=^/tryton_bash_60$)" ]; then
@ -16,8 +16,8 @@ if [ ! "$(docker ps -q -f name=^/tryton_bash_60$)" ]; then
docker run \
-u ${1:-trytond} \
-w=$workpath \
-v "docker-tryton_code:/home/trytond/tryton" \
-v "docker-tryton_db:/home/trytond/db" \
-v "docker-tryton_code_60:/home/trytond/tryton" \
-v "docker-tryton_db_60:/home/trytond/db" \
--link postgres \
--network=docker-tryton_default \
-e DB_HOSTNAME=postgres \
@ -26,4 +26,4 @@ if [ ! "$(docker ps -q -f name=^/tryton_bash_60$)" ]; then
-e TRYTOND_DATABASE__LANGUAGE=${TRYTON_LANGUAGE} \
--name tryton_bash_60 \
-it tryton:6.0-deploy bash
fi
fi

69
nginx.conf.sample Normal file
View file

@ -0,0 +1,69 @@
events {
}
http {
error_log /etc/nginx/error_log.log warn;
client_max_body_size 20m;
proxy_cache_path /etc/nginx/cache keys_zone=one:500m max_size=1000m;
server {
listen 8000;
listen 80;
client_max_body_size 50m;
access_log /var/log/nginx/tryton.log;
location / {
proxy_read_timeout 315s;
proxy_send_timeout 315s;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://tryton:8000;
}
}
################################################
# Enable this section (and remove the other one)
# to use ssl with letsencrypt and certbot
################################################
# server {
# listen 80;
# server_name <server>;
#
# location /.well-known/acme-challenge/ {
# root /var/www/certbot;
# }
#
# location / {
# return 301 https://$host$request_uri;
# }
#
# }
#
# server {
# listen 8000 ssl;
# listen 443 ssl;
# server_name <server>;
#
# client_max_body_size 50m;
#
# access_log /var/log/nginx/tryton.log;
#
# ssl_certificate /etc/letsencrypt/live/<domain>/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/<domain>/privkey.pem;
#
# include /etc/letsencrypt/options-ssl-nginx.conf;
# ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
#
# location / {
# proxy_read_timeout 315s;
# proxy_send_timeout 315s;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_pass http://tryton:8000;
# }
# }
}