Files
phishingclub/backend
Ronni Skansing e508190f35 improve calendar UI
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
2026-01-28 21:30:24 +01:00
..
2025-08-21 16:14:09 +02:00
2025-08-21 16:14:09 +02:00
2025-08-21 16:14:09 +02:00
2025-12-13 21:39:08 +01:00
2025-08-21 16:14:09 +02:00
2025-10-05 10:55:27 +02:00
2025-11-10 19:04:22 +01:00
2025-08-21 16:14:09 +02:00
2026-01-28 21:30:24 +01:00
2026-01-19 20:57:14 +01:00
2025-11-09 10:48:53 +01:00
2025-08-21 16:14:09 +02:00
2025-08-21 16:14:09 +02:00
2025-11-09 12:22:39 +01:00
2025-11-05 20:20:40 +01:00
2026-01-19 20:57:14 +01:00
2025-08-21 16:14:09 +02:00
2025-09-30 18:59:04 +02:00
2025-11-09 10:48:53 +01:00
2026-01-22 15:47:43 +01:00
2025-09-30 18:59:04 +02:00
2025-08-21 16:14:09 +02:00
2025-08-21 16:14:09 +02:00
2025-08-21 16:14:09 +02:00
2025-09-20 12:19:52 +02:00
2025-11-22 12:10:49 +01:00
2025-09-30 18:59:04 +02:00
2025-11-21 00:00:12 +01:00
2025-08-21 16:14:09 +02:00
2025-12-14 20:43:36 +01:00
2025-08-21 16:31:02 +02:00
2025-08-21 16:14:09 +02:00
2025-08-21 16:14:09 +02:00
2025-10-16 11:10:27 +02:00
2025-08-21 16:14:09 +02:00
2025-09-18 14:00:37 +02:00
2025-11-20 23:54:00 +01:00
2025-11-20 23:54:00 +01:00
2025-11-20 23:54:00 +01:00
2025-08-21 16:14:09 +02:00

Platform backend

Install AIR for auto-reloading go install github.com/cosmtrek/air@latest

To start the project locally run: make backend-dev

Check the terminal output to see the address, username and password

Production / Deployment

The program must be executable chmod +x ./path/to/binary The program must have rights to serve on privliged ports sudo setcap CAP_NET_BIND_SERVICE=+eip /path/to/binary

Known Issues

Hot reloading not working / New files now working

If a file accessible in the frontend after adding it, save an existing file to trigger a rebuild. This should now include the new file. If this does not work, try to run make sorry which will restart all services.

Debugging with AIR via. docker and delve

To debug the backend you must uncomment the full bin line in the docker air toml file. Attach to the debugger to trigger starting the backend. Do not edit files while in debug mode, instead stop the debugger, edit the file and start the debugger again.

docker-compose

docker-compose is a plugin for docker that allows you to define multiple services in a single file. Before this was a stand alone python script run with docker-compose but as a plugin this is docker compose.

In the makefile, you can edit the top line to change if docker compose is called with or without the dash (-) in the middle.

Notes about allow listing

{ admin_allowed trusted_proxies trusted_ip_header }

if no admin_allowed is set, all IPs are welcome.

If no trusted proxies are set, headers such as X-Forwarded-By will not be used.

If TrustedIPHeader is set, then this header is used for finding the real IP. For example cloudflare uses cf-connecting-ip.

If TrustedIPHeader is not set and trusted_proxies is set, then it trusts the IP from X-Forwarded

SSO Setup

Microsoft Entra-ID

Ensure only specific tenant user's can log in.

In 'properties' set 'Assignment required' to 'Yes'. In 'Users and groups' add the users or groups that should be able to log into the application.