Commit f86e2b0e authored by nono's avatar nono 💻
Browse files

Add default vars and service template

parent 3eff5a06
---
# defaults file for uwazi-lqdn
uwazi_version: "latest"
uwazi_node_env: "production"
uwazi_source_url: "https://github.com/huridocs/uwazi/archive/refs/tags/{{ uwazi_version }}.zip"
uwazi_bdd_name: "uwazi-bdd"
uwazi_index_name: "default-uwazi-name"
uwazi_port: 40002
uwazi_upload_folder: "/srv/uwazi/uploads"
uwazi_log_dir: "/var/log/uwazi" # Folder
uwazi_donwload_location: "/tmp/uwazi" # Folder
uwazi_install_location: "/srv/uwazi" # Folder
uwazi_server_code: "/usr/bin/node {{uwazi_install_location}}/server.js"
[Unit]
Description=Uwazi
After=network.target
[Service]
Environment=DBHOST=localhost
Environment=NODE_ENV={{ uwazi_node_env }}
Environment=DATABASE_NAME={{ uwazi_bdd_name }}
Environment=ELASTICSEARCH_URL=http://elasticsearch:9200
Environment=INDEX_NAME={{ uwazi_index_name }}
Environment=PORT={{ uwazi_port }}
Environment=UPLOADS_FOLDER={{ uwazi_upload_folder }}
Environment=LOGS_DIR={{ uwazi_log_dir }}
WorkingDirectory={{ uwazi_install_location }}
ExecStart={{ uwazi_server_code }}
Restart=always
RestartSec=30s
TimeoutSec=60s
User=uwazi
[Install]
WantedBy=multi-user.target
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment