- add domain DNS record
* A server-ip
- on server
$ nano /etc/nginx/conf.d/app.conf
server {
add_header Access-Control-Allow-Origin *;
listen 443 ssl;
server_name *.domain.example;
error_page 502 /502.html;
* A server-ip
$ nano /etc/nginx/conf.d/app.conf
server {
add_header Access-Control-Allow-Origin *;
listen 443 ssl;
server_name *.domain.example;
error_page 502 /502.html;
[Unit]
Description=SSH reverse tunnel
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/ssh -g -N -T -o VerifyHostKeyDNS=no -o "ServerAliveInterval 10" -o StrictHostKeyChecking=no -o "ExitOnForwardFailure yes" -R xxxx:localhost:xxxx xx@xxxx -i /home/xxxx/.ssh/id_rsa
Restart=always
RestartSec=5s
I'm putting this here for my own reference because I was up way too late figuring this out.
After installing the network card, I could see I already had the right driver for it. sudo lshw -c network
showed that the card was disabled though. What ended up getting the card working was the following which I recorded here:
sudo ip l s dev enp6s0 up
useful tools
only Mac
# mogno dump to sftp server | |
#!/bin/bash | |
SFTP_STRING="username@storage1.hukot.net" | |
CURRENT_TIME=$(date "+%Y.%m.%d-%H.%M.%S") | |
BACKUP_DIR="/home/jsupa/zaloha" | |
# dump mongo |