diff --git a/docs/FAQ.md b/docs/FAQ.md index 6f6c941c1..dfc5c608e 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -22,12 +22,13 @@ Settings → System → Network Settings → Toggle "Enable Discovery" off → S Or set environment variable `DISCOVERY_ENABLED=false` ### How do I change the port? -Systemd: `sudo systemctl edit pulse-backend`, add `Environment="FRONTEND_PORT=8080"`, restart -Docker: Use `-e FRONTEND_PORT=8080` in your run command +Systemd: `sudo systemctl edit pulse`, add `Environment="FRONTEND_PORT=8080"`, restart +Docker: Use `-e FRONTEND_PORT=8080 -p 8080:8080` in your run command +See [Port Configuration Guide](PORT_CONFIGURATION.md) for details ### Why can't I change settings in the UI? If a setting is disabled with an amber warning, it's being overridden by an environment variable. -Remove the env var (check `sudo systemctl show pulse-backend | grep Environment`) and restart to enable UI configuration. +Remove the env var (check `sudo systemctl show pulse | grep Environment`) and restart to enable UI configuration. ### What permissions needed? - PVE: `PVEAuditor` minimum diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 8ea97c08c..96b9777cb 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -8,6 +8,11 @@ The official installer automatically detects your environment and chooses the be curl -fsSL https://raw.githubusercontent.com/rcourtman/Pulse/main/install.sh | sudo bash ``` +The installer will prompt you for the port (default: 7655). To skip the prompt, set the environment variable: +```bash +FRONTEND_PORT=8080 curl -fsSL https://raw.githubusercontent.com/rcourtman/Pulse/main/install.sh | sudo bash +``` + ## Installation Methods ### Proxmox VE Hosts @@ -27,6 +32,7 @@ When run on a Proxmox VE host, the installer automatically: - Customize all container settings - Choose specific network bridges and storage - Configure static IP if needed +- Set custom port (default: 7655) ### Standard Linux Systems @@ -90,10 +96,14 @@ Ensure you have: - Network bridge configured ### Port Already in Use -Pulse uses port 7655 by default. Check with: +Pulse uses port 7655 by default. You can change it during installation or check current usage with: ```bash sudo netstat -tlnp | grep 7655 ``` +To use a different port during installation: +```bash +FRONTEND_PORT=8080 curl -fsSL https://raw.githubusercontent.com/rcourtman/Pulse/main/install.sh | sudo bash +``` ## Uninstalling diff --git a/docs/PORT_CONFIGURATION.md b/docs/PORT_CONFIGURATION.md index 608cc3a1a..a9d562724 100644 --- a/docs/PORT_CONFIGURATION.md +++ b/docs/PORT_CONFIGURATION.md @@ -4,7 +4,13 @@ Pulse supports multiple ways to configure the frontend port (default: 7655). ## Recommended Methods -### 1. Using systemd override (Recommended for systemd installations) +### 1. During Installation (Easiest) +The installer prompts for the port. To skip the prompt, use: +```bash +FRONTEND_PORT=8080 curl -fsSL https://raw.githubusercontent.com/rcourtman/Pulse/main/install.sh | sudo bash +``` + +### 2. Using systemd override (For existing installations) ```bash sudo systemctl edit pulse ``` @@ -15,7 +21,7 @@ Environment="FRONTEND_PORT=8080" ``` Then restart: `sudo systemctl restart pulse` -### 2. Using system.json (For persistent configuration) +### 3. Using system.json (Alternative method) Edit `/etc/pulse/system.json`: ```json { @@ -24,12 +30,10 @@ Edit `/etc/pulse/system.json`: ``` Then restart: `sudo systemctl restart pulse` -Note: This can also be configured via the Web UI settings. - -### 3. Using environment variables (Docker) +### 4. Using environment variables (Docker) For Docker deployments: ```bash -docker run -e FRONTEND_PORT=8080 -p 8080:8080 rcourtman/pulse +docker run -e FRONTEND_PORT=8080 -p 8080:8080 rcourtman/pulse:latest ``` ## Priority Order diff --git a/frontend-modern/src/components/Settings/Settings.tsx b/frontend-modern/src/components/Settings/Settings.tsx index 52efb7685..87941ad70 100644 --- a/frontend-modern/src/components/Settings/Settings.tsx +++ b/frontend-modern/src/components/Settings/Settings.tsx @@ -1283,11 +1283,12 @@ const Settings: Component = () => {
- Port Configuration: Edit /etc/pulse/.env
+ Port Configuration: Use systemctl edit pulse
- FRONTEND_PORT=8080
- Then restart: sudo systemctl restart pulse-backend
+ [Service]
+ Environment="FRONTEND_PORT=8080"
+ Then restart: sudo systemctl restart pulse