|Sebastian 500cbd8724||1 year ago|
|html||1 year ago|
|install||1 year ago|
|LICENSE||1 year ago|
|README.md||1 year ago|
|config.cfg.lua.sample||1 year ago|
|wmia.lua||1 year ago|
Currently it is recommand to run this service behind nginx. In the future it should be possible to run it standalone too, but for this a few features are missing. This installation assume you’re using Debian or Ubuntu, but should work on other systems too, when you replace the package manager commands.
apt install lua5.3 nginx
su -l wmia
git clone https://git.kokolor.es/imo/whats-my-ip-address.git
The benefit is, that luarocks will now install new modules in this folder, which keeps the rest of the system clean. But if you want to install the modules for the whole user or the whole system you can do this as well.
luarocks install http luarocks install mimetypes luarocks install luafilesystem
cp /home/wmia/whats-my-ip-address/install/wmia.service /etc/systemd/system/
luarocks initmake sure you change the path to the Lua executable in ExecStart.
systemctl enable wmia.service systemctl start wmia.service
If all paths are correctly, the service should start and be reachable locally