Permalink
Browse files

ajout des configs nginx et lighttpd

  • Loading branch information...
1 parent 9e5286e commit bda1c64e8dd90e90349802d69ef20d7d2eff4866 @alaeri committed Jun 1, 2012
View
@@ -0,0 +1,31 @@
+server.document-root = "/home/alaeri/Downloads"
+#### bind to interface (default: all interfaces)
+server.bind = "127.0.0.1"
+server.port = 5432
+server.pid-file = "lighttpd.pid"
+mimetype.assign = (
+ ".html" => "text/html",
+ ".txt" => "text/plain",
+ ".jpg" => "image/jpeg",
+ ".png" => "image/png" ,
+ ".avi" => "video/avi"
+)
+dir-listing.activate = "enable"
+auth.require = ( "/" =>
+(
+"method" => "basic",
+"realm" => "Password protected area",
+"require" => "user=calamargeant"
+)
+)
+
+
+
+server.modules += ( "mod_auth" )
+
+auth.debug = 2
+auth.backend = "plain"
+auth.backend.plain.userfile = "/home/alaeri/password"
+
+
+
@@ -0,0 +1,54 @@
+{
+ "alt-speed-down": 50,
+ "alt-speed-enabled": false,
+ "alt-speed-time-begin": 540,
+ "alt-speed-time-day": 127,
+ "alt-speed-time-enabled": false,
+ "alt-speed-time-end": 1020,
+ "alt-speed-up": 50,
+ "bind-address-ipv4": "88.191.130.110",
+ "bind-address-ipv6": "::",
+ "blocklist-enabled": false,
+ "dht-enabled": true,
+ "download-dir": "/home/alaeri/Downloads",
+ "encryption": 1,
+ "incomplete-dir": "/home/alaeri/Downloads",
+ "incomplete-dir-enabled": false,
+ "lazy-bitfield-enabled": true,
+ "message-level": 2,
+ "open-file-limit": 32,
+ "peer-limit-global": 240,
+ "peer-limit-per-torrent": 60,
+ "peer-port": 51413,
+ "peer-port-random-high": 65535,
+ "peer-port-random-low": 49152,
+ "peer-port-random-on-start": false,
+ "peer-socket-tos": 0,
+ "pex-enabled": true,
+ "port-forwarding-enabled": true,
+ "preallocation": 1,
+ "proxy": "",
+ "proxy-auth-enabled": false,
+ "proxy-auth-password": "",
+ "proxy-auth-username": "",
+ "proxy-enabled": false,
+ "proxy-port": 80,
+ "proxy-type": 0,
+ "ratio-limit": 2.0000,
+ "ratio-limit-enabled": false,
+ "rename-partial-files": true,
+ "rpc-authentication-required": true,
+ "rpc-bind-address": "127.0.0.1",
+ "rpc-enabled": true,
+ "rpc-password": #########################################",
+ "rpc-port": 9091,
+ "rpc-username": "##########################################",
+ "rpc-whitelist": "127.0.0.1",
+ "rpc-whitelist-enabled": true,
+ "speed-limit-down": 100,
+ "speed-limit-down-enabled": false,
+ "speed-limit-up": 100,
+ "speed-limit-up-enabled": false,
+ "umask": 18,
+ "upload-slots-per-torrent": 14
+}
@@ -0,0 +1,54 @@
+{
+ "alt-speed-down": 50,
+ "alt-speed-enabled": false,
+ "alt-speed-time-begin": 540,
+ "alt-speed-time-day": 127,
+ "alt-speed-time-enabled": false,
+ "alt-speed-time-end": 1020,
+ "alt-speed-up": 50,
+ "bind-address-ipv4": "88.191.130.110",
+ "bind-address-ipv6": "::",
+ "blocklist-enabled": false,
+ "dht-enabled": true,
+ "download-dir": "/home/alaeri/Downloads",
+ "encryption": 1,
+ "incomplete-dir": "/home/alaeri/Downloads",
+ "incomplete-dir-enabled": false,
+ "lazy-bitfield-enabled": true,
+ "message-level": 2,
+ "open-file-limit": 32,
+ "peer-limit-global": 240,
+ "peer-limit-per-torrent": 60,
+ "peer-port": 51413,
+ "peer-port-random-high": 65535,
+ "peer-port-random-low": 49152,
+ "peer-port-random-on-start": false,
+ "peer-socket-tos": 0,
+ "pex-enabled": true,
+ "port-forwarding-enabled": true,
+ "preallocation": 1,
+ "proxy": "",
+ "proxy-auth-enabled": false,
+ "proxy-auth-password": "",
+ "proxy-auth-username": "",
+ "proxy-enabled": false,
+ "proxy-port": 80,
+ "proxy-type": 0,
+ "ratio-limit": 2.0000,
+ "ratio-limit-enabled": false,
+ "rename-partial-files": true,
+ "rpc-authentication-required": true,
+ "rpc-bind-address": "127.0.0.1",
+ "rpc-enabled": true,
+ "rpc-password": "{c8bb0e08981aefb1c1bd4e7a642a8ab00d0c0de1Ka00S6FD",
+ "rpc-port": 9091,
+ "rpc-username": "calamargeant",
+ "rpc-whitelist": "127.0.0.1",
+ "rpc-whitelist-enabled": true,
+ "speed-limit-down": 100,
+ "speed-limit-down-enabled": false,
+ "speed-limit-up": 100,
+ "speed-limit-up-enabled": false,
+ "umask": 18,
+ "upload-slots-per-torrent": 14
+}
View
@@ -0,0 +1,31 @@
+# primary server - proxypass to Django
+server {
+
+ server_name zombilical.org;
+
+ access_log off;
+ error_log off;
+
+ # proxy to Apache 2 and mod_python
+ location / {
+ proxy_pass http://127.0.0.1:1111/;
+ proxy_redirect off;
+
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_max_temp_file_size 0;
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+
+ proxy_connect_timeout 90;
+ proxy_send_timeout 90;
+ proxy_read_timeout 90;
+
+ proxy_buffer_size 4k;
+ proxy_buffers 4 32k;
+ proxy_busy_buffers_size 64k;
+ proxy_temp_file_write_size 64k;
+ }
+}
View
@@ -0,0 +1,31 @@
+# primary server - proxypass to Django
+server {
+
+ server_name dev.zombilical.org;
+
+ access_log off;
+ error_log off;
+
+ # proxy to Apache 2 and mod_python
+ location / {
+ proxy_pass http://88.191.130.110:8081/;
+ proxy_redirect off;
+
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_max_temp_file_size 0;
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+
+ proxy_connect_timeout 90;
+ proxy_send_timeout 90;
+ proxy_read_timeout 90;
+
+ proxy_buffer_size 4k;
+ proxy_buffers 4 32k;
+ proxy_busy_buffers_size 64k;
+ proxy_temp_file_write_size 64k;
+ }
+}
View
@@ -0,0 +1,41 @@
+# primary server - proxypass to Django
+server {
+ listen 80;
+ server_name dl.zombilical.org;
+ location / {
+ rewrite ^ https://dl.zombilical.org$request_uri? permanent;
+ }
+}
+
+server {
+ listen 443;
+ server_name dl.zombilical.org;
+ ssl on;
+ ssl_certificate /etc/nginx/certs/mycert.pem;
+ ssl_certificate_key /etc/nginx/certs/mycert.pem;
+ access_log off;
+ error_log off;
+
+ # proxy to Apache 2 and mod_python
+ location / {
+ proxy_pass http://127.0.0.1:5432/;
+ proxy_redirect off;
+
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_max_temp_file_size 0;
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+
+ proxy_connect_timeout 90;
+ proxy_send_timeout 90;
+ proxy_read_timeout 90;
+
+ proxy_buffer_size 4k;
+ proxy_buffers 4 32k;
+ proxy_busy_buffers_size 64k;
+ proxy_temp_file_write_size 64k;
+ }
+}
View
@@ -0,0 +1,43 @@
+# primary server - proxypass to Django
+server {
+ listen 80;
+ server_name irc.zombilical.org;
+ location / {
+ rewrite ^ https://irc.zombilical.org$request_uri? permanent;
+ }
+}
+
+server {
+ #rewrite ^(.*) https://trans.zombilical.org$1 permanent;
+ server_name irc.zombilical.org;
+ listen 443;
+ ssl on;
+ ssl_certificate /etc/nginx/certs/mycert.pem;
+ ssl_certificate_key /etc/nginx/certs/mycert.pem;
+
+ access_log off;
+ error_log off;
+
+ # proxy to Apache 2 and mod_python
+ location / {
+ proxy_pass http://127.0.0.1:6789/;
+ proxy_redirect off;
+
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_max_temp_file_size 0;
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+
+ proxy_connect_timeout 90;
+ proxy_send_timeout 90;
+ proxy_read_timeout 90;
+
+ proxy_buffer_size 4k;
+ proxy_buffers 4 32k;
+ proxy_busy_buffers_size 64k;
+ proxy_temp_file_write_size 64k;
+ }
+}
View
@@ -0,0 +1,31 @@
+# primary server - proxypass to Django
+server {
+
+ server_name past.zombilical.org;
+
+ access_log off;
+ error_log off;
+
+ # proxy to Apache 2 and mod_python
+ location / {
+ proxy_pass http://88.191.130.110:9000/;
+ proxy_redirect off;
+
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_max_temp_file_size 0;
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+
+ proxy_connect_timeout 90;
+ proxy_send_timeout 90;
+ proxy_read_timeout 90;
+
+ proxy_buffer_size 4k;
+ proxy_buffers 4 32k;
+ proxy_busy_buffers_size 64k;
+ proxy_temp_file_write_size 64k;
+ }
+}
View
@@ -0,0 +1,31 @@
+# primary server - proxypass to Django
+server {
+
+ server_name poi.zombilical.org;
+
+ access_log off;
+ error_log off;
+
+ # proxy to Apache 2 and mod_python
+ location / {
+ proxy_pass http://localhost:4444/;
+ proxy_redirect off;
+
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_max_temp_file_size 0;
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+
+ proxy_connect_timeout 90;
+ proxy_send_timeout 90;
+ proxy_read_timeout 90;
+
+ proxy_buffer_size 4k;
+ proxy_buffers 4 32k;
+ proxy_busy_buffers_size 64k;
+ proxy_temp_file_write_size 64k;
+ }
+}
View
@@ -0,0 +1,31 @@
+# primary server - proxypass to Django
+server {
+
+ server_name sydney.zombilical.org;
+
+ access_log off;
+ error_log off;
+
+ # proxy to Apache 2 and mod_python
+ location / {
+ proxy_pass http://88.191.130.110:2345/;
+ proxy_redirect off;
+
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_max_temp_file_size 0;
+
+ client_max_body_size 10m;
+ client_body_buffer_size 128k;
+
+ proxy_connect_timeout 90;
+ proxy_send_timeout 90;
+ proxy_read_timeout 90;
+
+ proxy_buffer_size 4k;
+ proxy_buffers 4 32k;
+ proxy_busy_buffers_size 64k;
+ proxy_temp_file_write_size 64k;
+ }
+}
Oops, something went wrong.

0 comments on commit bda1c64

Please sign in to comment.