Projects vslutov lutov-net Files
Enable build support by adding .onedev-buildspec.yml
.husky Loading last commit info...
server-settings
src
.editorconfig
.eslintrc.cjs
.gitignore
.lintstagedrc.mjs
LICENSE.md
README.md
gatsby-browser.ts
gatsby-config.ts
gatsby-node.ts
npm-shrinkwrap.json
package.json
postcss.config.js
tailwind.config.cjs
tsconfig.json
README.md

lutov.net

JavaScript Style Guide

Develop

npm ci
npm start

Deploy

Preparation on server (one time)

cp server-settings/lutov.net.conf /etc/nginx/sites-available
ln -s /etc/nginx/sites-available/lutov.net.conf /etc/nginx/sites-enabled
mkdir -p /var/www/lutov.net/new
chown www:www -R /var/www/lutov.net
systemctl restart nginx

# Create user and copy ssh-keys
useradd -m www -s $(which git-shell)
cp -ar server-settings/git-shell-commands /home/www
chown www:www /home/www

cat >>/etc/rsync.conf <EOF
[lutov.net]
  uid = www
  gid = www
  path = /var/www/lutov.net/new
  comment = lutov.net public folder
  read only = no
  list = yes
  auth users = vs.lutov.net
  secrets file = /etc/rsyncd.scrt
  hosts allow = 192.168.70.0/24
EOF

echo vs.lutov.net:$(openssl rand -base64 30) >>/etc/rsync.scrt
# copy password from rsync.scrt to server-settings/password.txt

Publication

npm run deploy

Contributing

Write about bugs to vs@lutov.net. For contributing send patches to vs@lutov.net.

License

lutov.net - @vslutov blog
Copyright (C) 2020 Vladimir Liutov vs@lutov.net

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) 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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

See AGPLv3 License.

Please wait...
Page is in error, reload to recover