* Add redirect mode (read more at http://on.loki/faq#redirect) * Add server side host caching to reduce lag * Add FAQs accordions listening to hash * Fix not being able to register a subdomain * Fix placeholder service file so it's like the readme says it is
|2 weeks ago|
|components||2 weeks ago|
|pages||2 weeks ago|
|prisma||2 weeks ago|
|public||2 weeks ago|
|styles||2 weeks ago|
|.eslintrc.json||2 weeks ago|
|.gitignore||2 weeks ago|
|COPYING||2 weeks ago|
|README.md||2 weeks ago|
|next.config.js||2 weeks ago|
|onloki.service||2 weeks ago|
|package-lock.json||2 weeks ago|
|package.json||2 weeks ago|
|server.js||2 weeks ago|
|start.sh||2 weeks ago|
OnLoki is a quick way to get a subdomain for your Lokinet SNApp for free. You can check it out at http://on.loki
Here is its source code!
sudo apt install npm npm install cp prisma/schema.db prisma/dev.db npm run generate
If you want to run a test server, which will help you to spot errors and debug, and will have auto-refresh:
npm run dev
If you want to run a production server, which will load faster:
npm run build # You only need to do this when you change something and on first run npm run prod
You can even set up a SystemD service that auto-restarts the production server. First edit the
onloki.service file replacing “YOUR_USER” with the username of your account on the host machine (use
whoami if you don’t know that for some reason), and “ONLOKI_PATH” with the absolute path of the folder where you cloned this repository. Then:
sudo cp onloki.service /etc/systemd/system/onloki.service sudo systemctl start onloki sudo systemctl enable onloki
You can support this project by sending some OXEN. Thank you very much!
All the files in this repository are licensed under the GNU GPL 3.0 or later.
OnLoki - Free "domains" for Lokinet SNApps. Copyright (C) 2022 MassiveBox and OnLoki contributors. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.