(from Understanding Nginx Server and Location Block Selection Algorithms - https://goo.gl/YyzshP)
server {
(from Understanding Nginx Server and Location Block Selection Algorithms - https://goo.gl/YyzshP)
server {
| ### This file implements a blacklist for certain user agents and | |
| ### referrers. It's a first line of defense. It must be included | |
| ### inside a http block. | |
| # based from https://github.com/perusio/piwik-nginx/blob/master/blacklist.conf | |
| # blacklist from http://perishablepress.com/2013-user-agent-blacklist/ | |
| ## Add here all user agents that are to be blocked. | |
| map $http_user_agent $bad_bot { | |
| default 0; | 
https://i.stack.imgur.com/QFvq3.png https://tecadmin.net/install-python-3-7-on-centos/
$ ssh root@YOUR_SERVER_IP
| { | |
| "window.zoomLevel": 1, | |
| "workbench.colorTheme": "Ayu Mirage PowerUp", | |
| "python.pythonPath": "/Users/admin/.pyenv/versions/368/bin/python", | |
| "files.autoSave": "afterDelay", | |
| "editor.wordWrap": "on", | |
| // "editor.formatOnSave": true, | |
| "files.exclude": { | |
| "**/.git": true, | |
| "**/.svn": true, | 
THIS GIST WON'T BE UPDATED ANY MORE (24/10/18)
Follow the progress of this project here 3os.org Raspberry Pi 3 TOR Access Point Router Project
Network: Router RJ45 <--> Ethernet Port on Raspberry <--> TOR <--> Raspberry WIFI AC <--> WIFI CLIENT
# -- Download Rasbian Strech Lite from: https://www.raspberrypi.org/downloads/raspbian/| #### I am no Bash expert, I just googled and put this script together | |
| #### Be free to fork and post updates to this gist | |
| #### Also, you can change the username and email below for the django superuser | |
| DEFAULT_USER="admin" | |
| DEFAULT_EMAIL="admin@mail.com" | |
| DEFAULT_PASS="pass" | |
| function usage | |
| { | 
| user nginx; | |
| worker_rlimit_nofile 30000; | |
| worker_processes auto; | |
| error_log /var/log/nginx/error.log; | |
| pid /run/nginx.pid; | |
| # Load dynamic modules. See /usr/share/nginx/README.dynamic. | |
| include /usr/share/nginx/modules/*.conf; | |
yum install python36u python36u-devel python36u-mod_wsgialias python='/usr/bin/python3.6'curl -O https://bootstrap.pypa.io/get-pip.pypython get-pip.pypython -m pip install django mysqlclientcp /etc/httpd/modules/mod_wsgi_python3.6.so /usr/local/apache/modulesALTER TABLE table CONVERT TO CHARACTER SET utf8;| server { | |
| listen 80; | |
| root /vagrant; | |
| index index.html index.htm index.php app.php app_dev.php; | |
| # Make site accessible from http://set-ip-address.xip.io | |
| server_name 192.168.33.10.xip.io; | |
| access_log /var/log/nginx/vagrant.com-access.log; | |
| error_log /var/log/nginx/vagrant.com-error.log error; | 
| server { | |
| listen 80; | |
| server_name mysite.com; | |
| rewrite ^ https://$server_name$request_uri? permanent; | |
| } | |
| server { | |
| listen 443; | |
| ... | |
| ... |