Skip to content

Instantly share code, notes, and snippets.

@Thijzer
Last active August 29, 2015 13:57
Show Gist options
  • Save Thijzer/9772626 to your computer and use it in GitHub Desktop.
Save Thijzer/9772626 to your computer and use it in GitHub Desktop.
server {
listen 8888; ## listen for ipv4; this line is default and implied
root /var/www/blog_test/web;
index index.php;
#site root is redirected to the app boot script
location = / {
try_files @site @site;
}
#all other locations try other files first and go to our front controller if none of them exists
location / {
try_files $uri $uri/ @site;
}
location @site {
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
}
}
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
.firmware_revision config.txt~ kernel.img
bootcode.bin fixup.dat kernel_emergency.img
cmdline.orig fixup_cd.dat start.elf
cmdline.txt fixup_x.dat start_cd.elf
config.txt issue.txt start_x.elf
thijs_pi@raspi ~ $ cat /boot/config.txt
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=1000
# for more options see http://elinux.org/RPi_config.txt
#core_freq=500
#sdram_freq=500
#over_voltage=6
gpu_mem=16
#force_turbo=
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 2
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, so no using swapon|off from here on, use dphys-swapfile swap[on|off] for that
#tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
#tmpfs /var/spool tmpfs defaults,noatime,mode=1777 0 0
#tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
#tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
/dev/sda1 /media/data ext4 discard,noatime,noexec,nodev,rw,async 0 0
server {
listen 808; ## listen for ipv4; this line is default and implied
root /var/www/wordpress/;
index index.php;
# Make site accessible from http://localhost/
server_name raspi;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.php?q=$uri&$args;
access_log off;
log_not_found off;
}
location ~ ^/(ico/|assets/|jpg/|img/|javascript/|js/|css/|stylesheets/|flash/|media/|static/|robots.txt|humans.txt|favicon.ico) {
access_log off;
log_not_found off;
expires 360d;
}
# this prevents hidden files (beginning with a period) from being served
location ~ /\. { access_log off; log_not_found off; deny all; }
location ~* \.(js|css|png|jpg|jpeg|gif|ico)(\?ver=[0-9.]+)?$ {
access_log off;
log_not_found off;
expires 360d;
}
# location /doc/ {
# alias /usr/share/doc/;
# autoindex on;
# allow 127.0.0.1;
# allow ::1;
# deny all;
# }
location ~ \.php$ {
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
# # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
#
# # With php5-cgi alone:
# fastcgi_pass 127.0.0.1:9000;
# # With php5-fpm:
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
expires off;
}
}
#============= Authentication =================
security = user
map to guest = Bad User
#============= Tweaks =================
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
read raw = yes
write raw = yes
aio read size = 1
aio write size = 1
use sendfile = Yes
#============= Share Definitions =================
[data]
comment = main data
path = /media/data
guest ok = yes
browseable = yes
create mask = 0777
directory mask = 0777
force create mode = 0777
force directory mode = 0777
force user = pi
read only = No
[www]
comment = www-site
path = /var/www
guest ok = yes
browseable = yes
create mask = 0777
directory mask = 0777
force create mode = 0777
force directory mode = 0777
force user = pi
read only = No
server {
listen 80;
server_name blog.dev;
root /home/vagrant/apps/default/blog/web;
index index.php;
#site root is redirected to the app boot script
location = / {
try_files @site @site;
}
#all other locations try other files first and go to our front controller if none of them exists
location / {
try_files $uri $uri/ @site;
}
#return 404 for all php files as we do have a front controller
location ~ \.php$ {
return 404;
}
location @site {
# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
# With php5-cgi alone:
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
# fastcgi_pass 127.0.0.1:9000;
# with unix sock
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
}
}
{
"alt-speed-down": 0,
"alt-speed-enabled": true,
"alt-speed-time-begin": 600,
"alt-speed-time-day": 62,
"alt-speed-time-enabled": true,
"alt-speed-time-end": 0,
"alt-speed-up": 0,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"blocklist-url": "http://www.example.com/blocklist",
"cache-size-mb": 4,
"dht-enabled": true,
"download-dir": "/media/data/dls",
"download-limit": 100,
"download-limit-enabled": 0,
"download-queue-enabled": true,
"download-queue-size": 3,
"encryption": 2,
"idle-seeding-limit": 10,
"idle-seeding-limit-enabled": true,
"incomplete-dir": "/media/data/tmp",
"incomplete-dir-enabled": true,
"lpd-enabled": true,
"max-peers-global": 140,
"message-level": 2,
"peer-congestion-algorithm": "",
"peer-limit-global": 140,
"peer-limit-per-torrent": 40,
"peer-port": 55555,
"peer-port-random-high": 55555,
"peer-port-random-low": 55565,
"peer-port-random-on-start": false,
"peer-socket-tos": "default",
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"prefetch-enabled": 1,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 30,
"ratio-limit": 2,
"ratio-limit-enabled": true,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "{b80de50da55ea06d0007c5e63a94b3bfdb5690f6Nxn/FV7A",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "xbmc",
"rpc-whitelist": "127.0.0.1,192.168.*.*",
"rpc-whitelist-enabled": true,
"scrape-paused-torrents-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"seed-queue-enabled": false,
"seed-queue-size": 10,
"speed-limit-down": 2000,
"speed-limit-down-enabled": true,
"speed-limit-up": 100,
"speed-limit-up-enabled": false,
"start-added-torrents": true,
"trash-original-torrent-files": false,
"umask": 0,
"upload-limit": 100,
"upload-limit-enabled": 0,
"upload-slots-per-torrent": 14,
"utp-enabled": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment