First, make sure the OS is fully up to date:
apt update
apt upgrade
listen 443 ssl http2; | |
listen 4443 ssl; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_prefer_server_ciphers on; | |
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; | |
ssl_certificate_by_lua_block { | |
auto_ssl:ssl_certificate() | |
} |
'use strict'; | |
const keys_map = { | |
'host': {isRequired: true, type: 'string', min: 3, max: 500}, | |
'ip': {isRequired: true, type: 'string', min: 1, max: 500}, | |
'username': {isRequired: true, type: 'string', min: 1, max: 500}, | |
'updated': {default: function(){return (new Date).getTime()}}, | |
'targetPort': {isRequired: false, default: 80, type: 'number', min: 0, max: 65535}, | |
'forcessl': {isRequired: false, default: true, type: 'boolean'}, | |
'targetssl': {isRequired: false, default: false, type: 'boolean'}, |
var app = {}; | |
app.api = (function(app){ | |
var baseURL = '/api/' | |
function post(url, data, callack){ | |
$.ajax({ | |
type: 'POST', | |
url: baseURL+url, | |
headers:{ |
This step requires a redhat based distro, like centos. A live distro may do although is untested.
{ | |
"/dev/disk/by-id/scsi-35000c50034b0014f": { | |
"Elements in grown defect list": "29", | |
"Non-medium error count": "54", | |
"SMART Health Status": "OK", | |
"read": { | |
"Correction algorithm invocations": "1", | |
"ECC corrected delayed": "1", | |
"ECC corrected fast": "2075731551", | |
"ECC reread/rewrites": "0", |
[Unit] | |
Description=Gitea (Git with a cup of tea) | |
After=syslog.target | |
After=network.target | |
#After=mysqld.service | |
#After=postgresql.service | |
#After=memcached.service | |
#After=redis.service | |
[Service] |
class Login(View): | |
template = 'users/login.html' | |
form = AuthenticationForm | |
def get(self, request): | |
context = { | |
'loginForm': self.form() | |
} | |
return render(request, self.template, context) |
#!/usr/bin/env bash | |
# Place this file in /usr/bin/node-async-interactive | |
# Run `chmod +x /usr/bin/node-async-interactive` to make it executable | |
# Usage `node-async-interactive node_file.js` will drop you in a interactive node REPL | |
node --experimental-repl-await -i -e "$(< $1)" |