[PR #3606] [MERGED] Added EnvironmentFile to systemd unit #5478

Closed
opened 2026-10-31 20:47:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3606
Author: @cherts
Created: 12/19/2025
Status: ✅ Merged
Merged: 1/3/2026
Merged by: @MHSanaei

Base: main ← Head: dev-systemd-environmentfile


📝 Commits (7)

  • f5eab61 Added EnvironmentFile to systemd unit
  • 420b4e4 Added support for older releases
  • cfccaa2 Remove ARGS
  • 2a99726 Fixed copy unit
  • 94b9abc Fixed unit filename
  • d4c481b Update update.sh
  • 21827ed Merge branch 'main' into dev-systemd-environmentfile

📊 Changes

5 files changed (+50 additions, -5 deletions)

View changed files

📝 .github/workflows/release.yml (+4 -2)
📝 install.sh (+12 -1)
📝 update.sh (+17 -2)
📝 x-ui.service.debian (+1 -0)
➕ x-ui.service.rhel (+16 -0)

📄 Description

What is the pull request?

Using EnvironmentFile in a systemd unit allows you to specify list of environment variables (such as XUI_DB_FOLDER) without directly modifying the systemd unit itself.

Example of /etc/default/x-ui file (debian-like os):

XUI_DB_FOLDER=/var/lib/x-ui

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/3606 **Author:** [@cherts](https://github.com/cherts) **Created:** 12/19/2025 **Status:** ✅ Merged **Merged:** 1/3/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `dev-systemd-environmentfile` --- ### 📝 Commits (7) - [`f5eab61`](https://github.com/MHSanaei/3x-ui/commit/f5eab619037a864a4a202bffe9b172dedfb8827c) Added EnvironmentFile to systemd unit - [`420b4e4`](https://github.com/MHSanaei/3x-ui/commit/420b4e49c9bf6b773052c8494bfaf0dc82a51dc4) Added support for older releases - [`cfccaa2`](https://github.com/MHSanaei/3x-ui/commit/cfccaa259c4db66702c352e111ebb5e7d3de68c5) Remove ARGS - [`2a99726`](https://github.com/MHSanaei/3x-ui/commit/2a99726b6c66dde28a5d419533b24317bf463fbf) Fixed copy unit - [`94b9abc`](https://github.com/MHSanaei/3x-ui/commit/94b9abca62d2c7e97077ccc50d49b14ab674772c) Fixed unit filename - [`d4c481b`](https://github.com/MHSanaei/3x-ui/commit/d4c481bbab8dd32942381a0542be718d8986af42) Update update.sh - [`21827ed`](https://github.com/MHSanaei/3x-ui/commit/21827ed89721624272ba848b62bd4afa283742cc) Merge branch 'main' into dev-systemd-environmentfile ### 📊 Changes **5 files changed** (+50 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/release.yml` (+4 -2) 📝 `install.sh` (+12 -1) 📝 `update.sh` (+17 -2) 📝 `x-ui.service.debian` (+1 -0) ➕ `x-ui.service.rhel` (+16 -0) </details> ### 📄 Description ## What is the pull request? Using EnvironmentFile in a systemd unit allows you to specify list of environment variables (such as XUI_DB_FOLDER) without directly modifying the systemd unit itself. Example of /etc/default/x-ui file (debian-like os): ``` XUI_DB_FOLDER=/var/lib/x-ui ``` ## Which part of the application is affected by the change? - [ ] Frontend - [ ] Backend ## Type of Changes - [ ] Bug fix - [x] New feature - [ ] Refactoring - [ ] Other --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:47:15 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5478
No description provided.