Commit graph

24 commits

Author SHA1 Message Date
Christian Ditaputratama
c3f837e122
feat: Check IP-stack info everytime prober send report #84
This commit add IsIPv6Only function inside `internal/ip` package
and moving `geo` package from `internal/geo` to `internal/ip/geo`.

Although it increases server resource usage, checking hostname to IP is
required every time the prober sends a report so that the `ipv6_only`
record in the database is not up-to-date. Previously, this feature did
not exist.
2024-09-09 18:21:03 +07:00
Christian Ditaputratama
79bc58b87f
chore: So, the checkbox is not working 2024-09-05 20:37:44 +07:00
Christian Ditaputratama
71b44eabac
chore: Added todo's to README and use link references 2024-09-05 20:34:42 +07:00
Christian Ditaputratama
55ea97ba84
chore: Go Report Card badge added to README
Some checks failed
Build / build (push) Has been cancelled
Test / test (push) Has been cancelled
2024-07-16 17:47:55 +07:00
Christian Ditaputratama
be43734663
chore(test): Add test shortcut to Makefile
Also rename `.github/workflows/lint.yml` to `.github/workflows/test.yml`
2024-07-07 00:51:54 +07:00
ditatompel
d09542cee0
chore: Add release binary action badge 2024-06-11 14:53:15 +07:00
ditatompel
c65c939d36
Add build workflow 2024-06-10 23:44:01 +07:00
ditatompel
0fdce5cc81
Make this project public, add link & license info
> When I wrote this, only God and I understood what I was doing.
> Now, only God knows.

Shout to https://github.com/me-shaon/GLWTPL
2024-06-10 22:40:44 +07:00
ditatompel
70c371a9b4
chore: Add similar projects to the README.md 2024-06-10 21:32:01 +07:00
ditatompel
9323e63405
docs: Add build requirement information 2024-06-03 13:37:18 +07:00
ditatompel
c6d48764a2
Update readme on how the site works 2024-05-31 18:24:45 +07:00
ditatompel
5fae3d565a
chore: Rename tools directory to deployment
The `tools` directory contains example ansible playbook, systemd
example, and Nginx configuration example for the server.

The directory name `deployment` for that stuffs much more suitable.
2024-05-30 12:02:11 +07:00
ditatompel
8df90ef5e2
chore: Fix formatting (prettier) 2024-05-28 10:03:29 +07:00
ditatompel
253230dc5a
Removing admin module and functions
The administration of the server is done using cli tools. So I don't
think that admin account and module is required. At least for now.

Note that this also remove `tbl_admin` creation in database migrate.
Since no release were made until this commit, the database migration
still in version 1. Manual removal database table for `tbl_admin`
is required on the existing running server.
2024-05-23 03:40:06 +07:00
ditatompel
d44cea7e7c
Update the geoip package location 2024-05-23 00:39:31 +07:00
ditatompel
279b142e76
Build server tags in Makefile & air config #3
The build system is changed, now it build 2 different binary by using
go `-tags`. The local output binary also changed based on build tags.
2024-05-18 18:05:53 +07:00
ditatompel
598adac908
Adding repo description and update requirements 2024-05-17 17:40:22 +07:00
ditatompel
46bc3dc2e8
Using slog for logging level
The log level for the apps is using `log/slog` from Go standard library.
This commit change log format for fiber http logger to match with
the slog standard log format (date and time).

This commit also remove `APP_DEBUG` field from config struct.

TODO:
Use `slog` for default app output. Note that in this commit, the `slog`
output only implemented in `cron` "db migrate" and probe client.
2024-05-13 18:40:01 +07:00
ditatompel
d3113bf598
feat: MySQL db migration
Create database schema migration for this app that run when the `serve`
command is executed.
2024-05-12 04:19:40 +07:00
ditatompel
ec11fa0126
removing current page & next page in api response
This response was used for my HTMX "infinite scroll" data, which is not
used in this Svelte project.
2024-05-09 18:29:48 +07:00
ditatompel
899ffd0830
Adding systemd service and timer for prober 2024-05-06 21:45:33 +07:00
ditatompel
e7164ae0c1
Adding systemd example for server service 2024-05-06 19:59:43 +07:00
ditatompel
553aca1074
Adding GeoIP support 2024-05-05 02:20:54 +07:00
ditatompel
97ac67022f
Initial commit 2024-05-04 00:10:33 +07:00