Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Change config file name#160

Open
sandmanstorm wants to merge 223 commits intoChocobozzz:masterfrom
arvage:master
Open

Change config file name#160
sandmanstorm wants to merge 223 commits intoChocobozzz:masterfrom
arvage:master

Conversation

@sandmanstorm
Copy link

It would be nice to change the client.ovpn file name to "username".ovpn

arvage and others added 30 commits August 24, 2022 12:32
removed FD0 device from system to prevent errors in the logs
…sers UX (E)

Option A – Dark Admin Theme with Sidebar:
- Replace top navbar with a fixed dark left sidebar (navy/indigo palette)
- Sidebar nav items use data-toggle="tab" to drive the existing tab-content panels
- Dark topbar with Get Config / Configurations / Logout actions
- Tab panes styled as white cards with subtle shadow on a light-grey canvas
- URL-hash tab persistence re-wired to sidebar active state

Option B – Dashboard Stats Panel:
- Four stat cards (Total Users, Online Now, Disabled, Log Entries) at the top of
  the main content area, loaded via a new ?select=stats AJAX endpoint
- Stats refresh automatically after add/delete/enable-toggle user operations

Option E – Improved Users Table UX:
- Password column now shows masked bullets (••••••) plus a "Reset" button;
  clicking Reset opens a Bootstrap modal for the new password
- Enabled column replaced with a CSS toggle switch (no raw checkbox)
- Rows where user_end_date is in the past are highlighted in light red
- Delete actions on users and admins now show a Bootstrap confirm modal
  instead of the native window.confirm() dialog

https://claude.ai/code/session_01WZEZB3qbYnaXPXj3eB9P1j
…all scripts

- install.sh: add Debian to the OS guard, add a Debian package installation
  block (mariadb-server, php, php-mysql, php-zip, apache2, openvpn, net-tools),
  and extend the firewall-persistence case to Ubuntu|Debian so iptables rules
  are saved persistently on both distros
- online-install.sh: add Debian to the OS guard
- uninstall.sh: replace the hard-coded /etc/php/7.3 path with a dynamic
  php_version variable so the php.ini cleanup works on any PHP version
  (fixes breakage on Debian and Ubuntu 21+)
- README.md: update prerequisites to list Debian 11/12 and add it to the
  Tests section

https://claude.ai/code/session_01WZEZB3qbYnaXPXj3eB9P1j
Parsing PRETTY_NAME with cut/sed is fragile and can silently produce the
wrong value depending on locale, distro variant, or whitespace differences
(e.g. Debian's PRETTY_NAME is "Debian GNU/Linux 12 (bookworm)" which
requires a different word position than Ubuntu's).

Switch both install.sh and online-install.sh to source /etc/os-release
directly and read the standardised ID field (guaranteed lowercase, no
spaces), then title-case it with awk to preserve the existing case
statements (Ubuntu, Raspbian, Debian).  Also switch OS_Version_Major/Minor
to use VERSION_ID instead of carving up PRETTY_NAME.

https://claude.ai/code/session_01WZEZB3qbYnaXPXj3eB9P1j
online-install.sh was cloning https://github.com/arvage/OpenVPN-Admin,
causing all changes in this fork to be silently discarded — users ended
up with the old unpatched code every time.  Update the clone URL to
ringmor/OpenVPN-Admin so the Debian-compatible install.sh is actually
used.  Update README.md Method 1 (wget) and Method 2 (git clone) URLs
to match.

https://claude.ai/code/session_01WZEZB3qbYnaXPXj3eB9P1j
- Replace JS tab navigation with server-side ?page= routing so pages
  survive browser refresh
- Unify login and config download into a single page
- Add mail, phone, and enable fields to admin table (matching user UX)
- Mask admin passwords with reset button instead of raw hash display
- Aggregate logs per user with session count and totals
- Auto-refresh stats and user table every 5 seconds
- Update installation configs with server IP and keepalive settings

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…oahl69q695u-JYzou

Claude/explain codebase mlvb1oahl69q695u j yzou
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants