inventree
This is an old revision of the document!
Inventree
Working config
## Last bit of .env file ## # Site URL - update this to match your host (and update the Caddyfile too!) INVENTREE_SITE_URL="https://parts.jegatron.se" INVENTREE_ALLOWED_HOSTS=parts.jegatron.se,toast.home.arpa INVENTREE_TRUSTED_ORIGINS=https://parts.jegatron.se #INVENTREE_CORS_ORIGIN_ALLOW_ALL=True INVENTREE_CORS_ALLOW_CREDENTIALS=True INVENTREE_USE_X_FORWARDED_HOST=True #INVENTREE_USE_X_FORWARDED_PORT=True #INVENTREE_CORS_ORIGIN_REGEX=.*jegatron.se
## Single line change of Caddyfile ##
# Change the host to your domain (this will serve at inventree.localhost)
toast.home.arpa {
## NginxProxyManager custom config box ##
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
add_header X-Served-By parts.jegatron.se;
proxy_set_header Host toast.home.arpa;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass https://toast.home.arpa:443$request_uri;
proxy_ssl_name toast.home.arpa;
proxy_ssl_server_name on;
#proxy_ssl_session_reuse off;
#proxy_ssl_trusted_certificate /data/custom_ssl/toast.home.arpa.pem;
#proxy_ssl_verify off;
}
inventree.1714546614.txt.gz · Last modified: 2024/05/01 06:56 by utedass
