diff --git a/.env_sample b/.env_sample new file mode 100644 index 0000000..7b92c7c --- /dev/null +++ b/.env_sample @@ -0,0 +1,43 @@ +#version Trytond server example 6.0 +TRYTOND_VERSION=6.6 +#python version that will run the docker example 3.7 or 3.9 is mandatory in case you use tryton6.2 +PYTHON_VERSION=3.9 +#if the module repository is private +GITEA_USER= +GITEA_PASSWORD= +GITEA_ACCESS_TOKEN= +#Repository Multi Migrate +REPO_MULTI_MIGRATE=OneTeam/oc-multi_migrate_to_gitea.git +#domain server gitea +GITEA_DOMAIN=git.disroot.org +URL_MULTI_MIGRATE=https://${GITEA_USER}:${GITEA_PASSWORD}@${GITEA_DOMAIN}/OneTeam/oc-multi_migrate_to_gitea.git +#By default all organizations are set to false, activate only one. +#GnuHealth, Etrivial, tryton-ar, OneTeam, OneTeam_Pos, Presik, Datalife, NaNtic, Kalenis +Provider= +DIR_MODULES=/usr/local/lib/python${PYTHON_VERSION}/dist-packages/trytond/modules +DB_PASSWORD=SUp3r-pass*DB +POSTGRES_DB=tryton +DB_HOSTNAME=db +POSTGRES_PASSWORD=SUp3r-pass*DB +TRYTON_PORT=8000 +DEVELOP=True +WORKER=True +TRYTONPASSFILE=/etc/trytond_admin_pass.conf +#Password user admin +TRYTONADMINPASS=admin +#Email user admin +EMAIL=admin@admin.com +SLEEP_TRYTOND_ADMIN=15 +#SMTP +#This value is True or False +SMTP=False +SMTP_TYPE=smtps+ssl +SMTP_USER= +SMTP_PASSWORD= +SMTP_DOMAIN= +SMTP_PORT=465 +SMTP_FROM=NAME_FROM +SMTP_EMAIL= +#NGINX +SERVER_NAME=mydomain.org +NGINX_PORT=8001 \ No newline at end of file diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..ed97331 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,19 @@ +server { + server_name ${SERVER_NAME}; + listen ${NGINX_PORT}; + client_max_body_size 50M; + + sendfile on; + send_timeout 300s; + + location / { + proxy_pass http://tryton:8000/; # "trytond" is the service name of another Docker container on port 8000 + proxy_read_timeout 300; + proxy_connect_timeout 300; + proxy_send_timeout 300; + proxy_set_header Host ${VARIABLE}host; + proxy_set_header X-Real-IP ${VARIABLE}remote_addr; + proxy_set_header X-Forwarded-For ${VARIABLE}proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Host ${VARIABLE}server_name; + } +}