It can be configured to run as a standalone http- / file-server with SSR (server side rendering)
or run as SPA (single page application)
Thanks, SvelteKit ❤️!
Regardless of the configuration, insvex.http can (and should be) used in conjunction with your already existing webserver, like nginx.
When using nginx and insvex.http configured as SPA, there isn't even a need to run a node.js server, although thumbnail generation may suffer.
In fact, with the right nginx-config (sample provided) insvex.http can work without any dependencies!
Configure nginx, drop in SPA files and you're done!
https://insvex-demo.1-3-3-7.dev
Before installation, you should decide whether to run insvex.http with SSR or as SPA.
Pros:
Cons:
SPA-NginX-AUTOINDEX
-artifact into your webrootPros:
Cons:
SSR
-artifact into any directory, but not into your webroot# ubuntu
sudo apt install nodejs ffmpeg graphicsmagick libreoffice ghostscript
# arch
sudo pacman -S nodejs ffmpeg graphicsmagick libreoffice ghostscript
SSR
-filesconfig.json
to your likingnpm i
npm run start
[Unit]
Description=insvex.http systemd service
Documentation=https://github.com/Alia5/insvex.http
[Service]
Type=simple
WorkingDirectory=/path/to/ssr/server/files
Environment="NODE_ENV=production"
ExecStart=node index.js
Restart=always
[Install]
WantedBy=multi-user.target
# pnpm as package manager is encouraged, to install:
corepack enable && corepack prepare pnpm@latest
# corepack comes bundled with node.js, so no need to install it
git clone git@github.com:Alia5/insvex.http.git
git submodule update --init --recursive
cd insvex.http
pnpm run setup
pnpm run dev
Copyright 2017-2023 Peter Repukat - FlatspotSoftware
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.