2020-01-02 12:33:49 +01:00
|
|
|
# Git based automatic web deployment system
|
2020-02-19 04:18:32 +01:00
|
|
|
This repository will be automagically pulled by the web server each time something is pushed by a user.
|
|
|
|
|
|
|
|
## Symlinks
|
|
|
|
The following files and directories are linked to areas where they can be accessed by the web server:
|
2020-01-02 12:33:49 +01:00
|
|
|
* `index.html` → `*/common/index.html` (the website as seen by the majority of the users, maybe a login page?)
|
|
|
|
* `icon.png` → `*/common/icon.png` (self-explanatory)
|
2020-02-19 15:20:02 +01:00
|
|
|
* `threadr/` → `*/common/threadr/` (everything else acessible by the web server)
|
2020-01-02 12:33:49 +01:00
|
|
|
* `default.html` → `lostcave.ddnss.de/index.html` (http redirect)
|
|
|
|
* `admin.php` → `admin.strassenkind.ip/index.php` (future management page, maybe for services, available sites, users, etc?)
|
2020-01-22 10:22:57 +01:00
|
|
|
* `strassenkind.php` → `strassenkind.ip/index.php` (future status page)
|
2020-02-12 04:28:16 +01:00
|
|
|
* `commands_status.conf` → `strassenkind.ip/commands_status.conf`
|
|
|
|
* `commands_ondemand.conf` → `strassenkind.ip/commands_ondemand.conf`
|
2020-02-17 02:06:40 +01:00
|
|
|
|
2020-02-19 04:18:32 +01:00
|
|
|
## Variables handled by the deployment script
|
|
|
|
Here is the place for variables that will be replaced automatically on the server. Using them is encouraged. Using the paths is DISCOURAGED.
|
|
|
|
This way, it is possible to change folder names around and fix the URLs in one place for all files simultaneously.
|
2020-02-20 22:04:49 +01:00
|
|
|
* `%CONTENT_DIR%` → The part of the URL between the domain name and the destination (e.g. https://lostcave.ddnss.de**/common/threadr/**about/)
|
2020-02-19 04:18:32 +01:00
|
|
|
|
|
|
|
## Some server variables that might turn out to be useful (example):
|
2020-02-17 02:06:40 +01:00
|
|
|
{
|
|
|
|
"HTTP_USER_AGENT":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko\/20100101 Firefox\/73.0",
|
2020-02-17 02:07:16 +01:00
|
|
|
"REMOTE_ADDR":"10.1.1.3"
|
2020-02-19 04:18:32 +01:00
|
|
|
}
|
2020-02-21 10:02:18 +01:00
|
|
|
|
|
|
|
## TODO:
|
2020-02-21 10:13:28 +01:00
|
|
|
* add `private public visible` to `boards`
|
|
|
|
* cookie policy and eula
|
2020-02-21 23:52:34 +01:00
|
|
|
* make text replacement tool file based
|
2020-02-21 10:13:28 +01:00
|
|
|
* %FORCE_LOGOUT%
|
|
|
|
* signup redirect: add check for existing users
|
|
|
|
* signup redirect: return redirect header, change index to php for handling highlighting of affected boxes
|
|
|
|
* userhome: setting for users that use VPNs/Proxies
|
2020-02-22 18:44:58 +01:00
|
|
|
* frontend: dropdown menus?
|
|
|
|
* internal status site: add fail2ban status
|
2020-02-23 21:30:49 +01:00
|
|
|
* add reverse proxy or similar to admin tools to a user account locked external page
|
2020-02-25 16:05:36 +01:00
|
|
|
* email verification
|
2020-02-26 19:13:07 +01:00
|
|
|
* Navbar build script (navbar.php → variable_grabbler.passX.json)
|
2020-02-25 16:07:12 +01:00
|
|
|
* recruit someone
|
2020-03-02 14:47:04 +01:00
|
|
|
* separate home and my feed in %NAVBAR% (or redirect seemlessly)
|
|
|
|
* allow caching of *some* files
|
2020-03-02 14:48:38 +01:00
|
|
|
* put the profile and logout links in a dropdown menu
|