Commit Graph

386 Commits (master)

Author SHA1 Message Date
Keith Irwin 09a4b2fcf9
Added code to add to federated server to dashboard add peer 2022-12-03 15:05:18 -07:00
Keith Irwin ca0f07f03e
Fixed wg_peer_add, also LOGFILE not available before sourcing CONFIG 2022-12-03 15:00:45 -07:00
Keith Irwin 72de903226
Added debugging 2022-12-03 14:53:02 -07:00
Keith Irwin 28607db8d4
Forgot sudo on fed.dockerfile 2022-11-27 16:21:25 -07:00
Keith Irwin 8379cf250c
Fixed missing touch in dockerfiles 2022-11-27 16:03:32 -07:00
Keith Irwin 4cf03e88e2
Added initial federation code 2022-11-27 16:00:43 -07:00
Keith Irwin 3690136d34
Cleaned up exit codes 2022-11-08 21:05:34 -07:00
Keith Irwin 475e99c24d
Removed commented out bits 2022-11-07 19:11:38 -07:00
Keith Irwin bd29148b3f
Fixed logging for self-deletion 2022-11-07 19:10:10 -07:00
Keith Irwin 7041d43832
That should be a 6 opps 2022-11-07 19:07:15 -07:00
Keith Irwin 8adc5c004c
Prepare to test that 2022-11-07 19:03:51 -07:00
Keith Irwin d3d5087830
Prevent admin deleting their own peer 2022-11-07 19:02:12 -07:00
Keith Irwin 0e1c97a366
Prevent deleting own peer from dashboard backend 2022-11-07 19:00:24 -07:00
Keith Irwin e04198c8a9
Fixed correct routing for local and remote servers 2022-11-07 17:31:59 -07:00
Keith Irwin 9e236a9f35
Fixed http responses 2022-11-07 17:28:29 -07:00
Keith Irwin c09d66c796
Try to preserve newlines 2022-11-07 17:24:55 -07:00
Keith Irwin d6a418f963
These do need to be mentioned, even if unused 2022-11-07 17:19:23 -07:00
Keith Irwin 1a7c0cc46a
Try that again 2022-11-07 17:14:36 -07:00
Keith Irwin 7b17177d4f
That wasn't right 2022-11-07 17:11:44 -07:00
Keith Irwin 1f9bc2bdec
Route through host to other peers 2022-11-07 17:01:23 -07:00
Keith Irwin 70b4c1358b
Shellchecks 2022-11-07 16:20:52 -07:00
Keith Irwin bc505bba06
Move port defiinitions to docker-compose 2022-11-07 15:36:54 -07:00
Keith Irwin 75821e01fd
No can't use 80 2022-11-07 15:34:27 -07:00
Keith Irwin 5e0df1dc95
Just use port 80 and be done with it 2022-11-07 15:29:46 -07:00
Keith Irwin cf3cd122f6
Moved sed to one line 2022-11-07 14:55:06 -07:00
Keith Irwin 176464a193
Moved env vars away from Dockerfiles 2022-11-07 14:53:23 -07:00
Keith Irwin e91f2bf45e
Try it on the clientside instead 2022-11-07 13:10:59 -07:00
Keith Irwin 17b8720e91
Added QR code to dashboard 2022-11-07 12:43:21 -07:00
Keith Irwin 980ab7cff2
Added qrencode to dockerfiles 2022-11-07 12:41:11 -07:00
Keith Irwin cb5b44244d
Fixed log error messages 2022-11-07 12:21:43 -07:00
Keith Irwin 60ab2966a2
Switch to singular case (should only return one) 2022-11-07 12:18:44 -07:00
Keith Irwin 46886b7d85
Fix admin deleting peer 2022-11-07 12:17:40 -07:00
Keith Irwin 2785683646
Added chgrp to visudo 2022-11-07 11:37:17 -07:00
Keith Irwin 0b96b7e56d
Removed server name 2022-11-07 11:36:01 -07:00
Keith Irwin fc9ad8b64d
Replace all ips_to_peers_rdns with rxfr 2022-11-07 11:30:56 -07:00
Keith Irwin 567501c785
Fixed index name 2022-11-07 11:27:08 -07:00
Keith Irwin 30217df42a
Fixed DocumentRoot 2022-11-07 11:24:13 -07:00
Keith Irwin 5f3de537a5
Fixed DocumentRoot 2022-11-07 11:17:48 -07:00
Keith Irwin 92e271b2e5
Removed unneeded line 2022-11-07 11:14:02 -07:00
Keith Irwin 2d7535b639
Removed default docroot page 2022-11-07 11:13:12 -07:00
Keith Irwin 3f2ff4e5fc
Fixed sed commands 2022-11-07 10:49:18 -07:00
Keith Irwin d3ed88a331
Made dockerfile more concise 2022-11-07 10:30:31 -07:00
Keith Irwin ce2a089af7
Fixed admin cgi extensions 2022-11-06 18:38:06 -07:00
Keith Irwin 2490514c1b
Don't fail if it succeeded 2022-11-06 18:36:25 -07:00
Keith Irwin 0ba7f1843b
Added a bit more logging 2022-11-06 18:32:57 -07:00
Keith Irwin 42cd140a31
Fixed logging 2022-11-06 18:31:19 -07:00
Keith Irwin f962c906ae
Fixed logging 2022-11-06 18:26:14 -07:00
Keith Irwin 21a31085ba
Added logging 2022-11-06 18:25:24 -07:00
Keith Irwin 8c3d3e6209
Fixed invalid extension error message 2022-11-06 18:21:54 -07:00
Keith Irwin 46f9d963eb
Fixed parsing 2022-11-06 18:21:24 -07:00
Keith Irwin 8c7b6a2d7a
Made the cgi executable 2022-11-06 18:19:10 -07:00
Keith Irwin dfe8875fea
Made the cgi executable 2022-11-06 18:18:34 -07:00
Keith Irwin 6a135649df
Removed logging 2022-11-06 18:14:25 -07:00
Keith Irwin 9b54b6f6fa
Removed .cgi extension 2022-11-06 18:13:52 -07:00
Keith Irwin 1bf3b3e584
Reverted cgi bin stuff 2022-11-06 18:09:47 -07:00
Keith Irwin cb27c1744d
Test different cgibin 2022-11-06 18:06:30 -07:00
Keith Irwin 7a8b8a9280
Fixed cgi-bin hopefully 2022-11-06 18:00:23 -07:00
Keith Irwin 6c01749fa1
Fixed cgi-bin location 2022-11-06 17:56:43 -07:00
Keith Irwin d988ebfba9
Fixed cgi-bin location 2022-11-06 17:56:24 -07:00
Keith Irwin 5254ff66ae
Fixed sed again 2022-11-06 17:54:24 -07:00
Keith Irwin 85a7405e2f
Maybe the order matters 2022-11-06 17:53:15 -07:00
Keith Irwin e8f0f23116
Start over the sed 2022-11-06 17:52:29 -07:00
Keith Irwin bbc0b6f13d
Fixed sed again 2022-11-06 17:49:15 -07:00
Keith Irwin 1109bf8b6c
Fixed sed again 2022-11-06 17:45:53 -07:00
Keith Irwin 7b6e1ddc71
Fixed sed 2022-11-06 17:44:30 -07:00
Keith Irwin dd86b8436e
Try to fix cgi 2022-11-06 17:41:55 -07:00
Keith Irwin 60953a88d7
Fixed premature display of peers table 2022-11-06 17:29:44 -07:00
Keith Irwin b289bd5d30
Cleaned up errors and added logging 2022-11-06 17:27:27 -07:00
Keith Irwin ae41a169b8
Fixed dockerfile to include new ssl cgi 2022-11-06 17:19:52 -07:00
Keith Irwin b8fa426971
First attempt at returning user SSL files 2022-11-06 17:09:55 -07:00
Keith Irwin e5c2f3161a
Fixed frontend, final cleanup 2022-11-02 13:16:16 -06:00
Keith Irwin d049e50868
Final coding for deleting a user from admin ui 2022-11-02 13:10:05 -06:00
Keith Irwin 230a383b06
Added more peer deletion logic 2022-11-02 13:02:23 -06:00
Keith Irwin dea9bb38ea
Fixed bad Dockerfile COPY 2022-11-02 12:29:57 -06:00
Keith Irwin b39eceafcb
Send usernumber too 2022-11-02 12:28:36 -06:00
Keith Irwin 90ae7bb506
Added more admin deleting user code 2022-11-02 12:19:06 -06:00
Keith Irwin c4b802e282
Initial deletion code 2022-11-02 12:13:36 -06:00
Keith Irwin 442fefab32
Cleaned up exit codes 2022-11-02 12:09:36 -06:00
Keith Irwin 6dbf4b4170
Removed commented-out code 2022-11-02 12:01:17 -06:00
Keith Irwin b42e861014
Fixed new usernumber generation 2022-11-02 11:58:32 -06:00
Keith Irwin bf943a1b92
Added admin adding new user backend code 2022-11-02 11:33:54 -06:00
Keith Irwin 3a327fd0fa
Fixed missing knockout.min.js 2022-11-01 18:58:36 -06:00
Keith Irwin 64ae072837
Ready for user functions 2022-10-21 16:26:01 -06:00
Keith Irwin 036b6cdeca
Don't let new peers be deleted 2022-10-21 12:42:34 -06:00
Keith Irwin 6d460f1008
Set better permissions for ssl keys 2022-10-21 12:07:43 -06:00
Keith Irwin a9d1ebcecc
Set better permissions for ssl keys 2022-10-21 12:07:26 -06:00
Keith Irwin 92e1cbc457
Added chgrp to nopasswd 2022-10-21 09:07:14 -06:00
Keith Irwin 10bd0ba066
Fixed adding SSL certs 2022-10-20 21:42:01 -06:00
Keith Irwin 4580a770b0
Fixed adding SSL certs 2022-10-20 19:23:01 -06:00
Keith Irwin 00ba98143c
www-data should work for now 2022-10-20 19:18:28 -06:00
Keith Irwin a7389605da
Set new ssl cert permissions 2022-10-20 19:12:36 -06:00
Keith Irwin 5c8231c8f4
Removed debugging and deployed remaining code 2022-10-20 19:06:32 -06:00
Keith Irwin 6844078539
Fixed token checks 2022-10-20 18:51:09 -06:00
Keith Irwin 9be068ec3c
Fixed token checks 2022-10-20 18:47:12 -06:00
Keith Irwin 2ce75beb4f
Admin delete peer debugging 2022-10-20 18:33:21 -06:00
Keith Irwin 50b1b5f87f
Added more code 2022-10-20 17:00:47 -06:00
Keith Irwin 4618754154
Added debugging 2022-10-20 16:58:32 -06:00
Keith Irwin c98b4d93bf
Added debugging 2022-10-20 16:56:21 -06:00
Keith Irwin 4bdf56212d
Added debugging 2022-10-20 16:52:13 -06:00
Keith Irwin 30d13b4c24
Removed later code 2022-10-20 16:51:16 -06:00