From eda44fa57aa428b876d14b65058e664497997ff0 Mon Sep 17 00:00:00 2001 From: Takeus <68923554+TakeusV1@users.noreply.github.com> Date: Wed, 5 Mar 2025 11:11:14 +0100 Subject: [PATCH 1/3] Create README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..08046ab --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# Flask IPAM (FIPAM) +An IP address management application _(Passive)_ written in **python** with the Flask web framework (and modules).
+The application is designed to manage **small networks** (**/30** to **/22**) destined for use in a **LAB**.
+_(I'm not an experienced developer, just a tinkerer)_ + +--- +![image](https://github.com/user-attachments/assets/a211c332-8ae8-4846-99f9-ebcda0d09c61) +![image](https://github.com/user-attachments/assets/40e240bd-481f-48bd-a67e-7007894f27b9) + +--- +![image](https://github.com/user-attachments/assets/44dac68f-e2e4-4d53-9158-9597de0dab5b) +![image](https://github.com/user-attachments/assets/5767a3dc-d99c-4c3e-bb88-c9c92049f58a) From f0c1109a8b79ff63289ac3f10fe9927ebbfdf962 Mon Sep 17 00:00:00 2001 From: Takeus <68923554+TakeusV1@users.noreply.github.com> Date: Wed, 26 Mar 2025 10:34:56 +0100 Subject: [PATCH 2/3] Create install.md --- install.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 install.md diff --git a/install.md b/install.md new file mode 100644 index 0000000..3b16252 --- /dev/null +++ b/install.md @@ -0,0 +1,11 @@ +# Installation GUIDE +This documentation is very good, but needs a few changes to make it work (in our case) : +https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-22-04
+ +- You don't need to create `wsgi.py`, when asked, replace : `wsgi:app` with `'app:create_app()'` . + - EX : For starting APP with gunicorn : `gunicorn --bind 0.0.0.0:5000 'app:create_app()'` + - In Service File, replace "ExecStart" line with :
+`ExecStart=/var/www/fipam/bin/gunicorn --workers 1 --bind unix:fipam.sock -m 007 'app:create_app()'`
+_(Adjust the number of workers to your needs)_ +- you must first run setup.py to create the admin user.
+_(it will create a second database in `./var/setup-instance`. It will have to be merged in the application database in `./var/app-instance`)_ From 33e2f8347087a1a203648cdc689ca963c6c82673 Mon Sep 17 00:00:00 2001 From: Takeus <68923554+TakeusV1@users.noreply.github.com> Date: Wed, 26 Mar 2025 10:37:49 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 08046ab..a43853e 100644 --- a/README.md +++ b/README.md @@ -10,3 +10,7 @@ _(I'm not an experienced developer, just a tinkerer)_ --- ![image](https://github.com/user-attachments/assets/44dac68f-e2e4-4d53-9158-9597de0dab5b) ![image](https://github.com/user-attachments/assets/5767a3dc-d99c-4c3e-bb88-c9c92049f58a) + +--- +- Installation : [here](install.md) +- Sources : [here](sources.md)