how to build cpuminer-opt on windows

Prerequisites: GNUStep msys GNUStep core GNUStep devel win-builds Installing the Software: Install GNUStep msys, core and devel in this order Run the win-builds installer and select Cygwin or MSYS and x86_64, add the http mirror as shown in the example (http://win-builds.org/1.5.0) and select C:\GNUStep as install dir Note: for myself the download from within win-builds […]

how to setup proxmox with nginx as reverse proxy

The setup of nginx is basically the same as described here, but some additional directives have to be configured to make Websockets, used for the noVNC console, work: cat /etc/nginx/sites-available/proxmox map $http_upgrade $connection_upgrade {     default upgrade;     ” close; } server {     listen [::]:443 ssl;     server_name YOUR-FQDN-HERE;     ssl on;     ssl_certificate […]

how to get the real visitor ip for cloudflare users in nginx

getting the real visitor ip for cloudflare users in nginx is easy: 1) add a new config file like so: sudo nano /etc/nginx/conf.d/cloudflare.conf # CloudFlare # IPv4 set_real_ip_from 103.21.244.0/22; set_real_ip_from 103.22.200.0/22; set_real_ip_from 103.31.4.0/22; set_real_ip_from 104.16.0.0/12; set_real_ip_from 108.162.192.0/18; set_real_ip_from 131.0.72.0/22; set_real_ip_from 141.101.64.0/18; set_real_ip_from 162.158.0.0/15; set_real_ip_from 172.64.0.0/13; set_real_ip_from 173.245.48.0/20; set_real_ip_from 188.114.96.0/20; set_real_ip_from 190.93.240.0/20; set_real_ip_from 197.234.240.0/22; set_real_ip_from 198.41.128.0/17; […]

how to setup nginx as a reverse proxy

Setting up a reverse proxy using nginx is easy: for this how-to i will use debian 1) install nginx: sudo apt-get install nginx 2) remove the default config (or move somewhere else for reference): sudo rm /etc/nginx/sites-enabled/default sudo rm /etc/nginx/sites-available/default 3) copy your certificates to the machine or generate some if using self-signed certificates, for […]

how to mount host directories inside a proxmox lxc container

Proxmox supports the creation of custom mountpoints inside a lxc container straight from the proxmox container .conf file: locate your container conf file under /etc/pve/lxc/<ID>.conf and add the following: mp0:/mount/point/on/host,mp=/mount/point/on/lxc mp1:/another/mount/point/on/host,mp=/another/mount/point/on/lxc thats it! edit: another way, in the same file, as pointed out in the comments is: lxc.mount.entry: /bkup bkup none bind,create=dir,optional 0 0 This method […]

how to enable tun/tap inside lxc

To enable the tun/tap interface in a lxc container – eg. for Openvpn – one needs to edit the lxc configuration file. Its default location for all containers is: /etc/lxc/default.conf and you have to add: lxc.cgroup.devices.allow = c 10:200 rwm This works in Proxmox 4.2, too. note: be aware that the config file above applies […]