Permalink
Browse files

Remove unused configs.

Single webserver instance now with configs in the services
directories. No need for all this business.
  • Loading branch information...
1 parent 7ea369d commit fd7cac1cceb589331967244a62efecbd4003ff97 @milkypostman milkypostman committed Sep 4, 2016
Showing with 0 additions and 408 deletions.
  1. +0 −30 cfg/Caddyfile
  2. +0 −30 cfg/Caddyfile-stable
  3. +0 −73 cfg/etc/nginx/sites-available/melpa
  4. +0 −76 cfg/etc/nginx/sites-available/melpa-stable
  5. +0 −99 cfg/nginx
  6. +0 −100 cfg/nginx-stable
View
@@ -1,30 +0,0 @@
-melpa.org {
- gzip {
- ext *
- level 3
- }
- root /home/melpa/melpa/html
- tls d@milkbox.net
- log /home/melpa/log/melpa.access.log {
- rotate {
- size 10
- }
- }
- errors /home/melpa/log/melpa.error.log
- header / Strict-Transport-Security "max-age=31536000;"
-}
-
-melpa.org:80 {
- gzip {
- ext *
- level 3
- }
- root /home/melpa/melpa/html
- log /home/melpa/log/melpa.access.log
- errors /home/melpa/log/melpa.error.log
-}
-
-www.melpa.org, melpa.milkbox.net {
- tls d@milkbox.net
- redir https://melpa.org{uri}
-}
View
@@ -1,30 +0,0 @@
-stable.melpa.org {
- gzip {
- ext *
- level 3
- }
- root /home/melpa/melpa/html
- tls d@milkbox.net
- log /home/melpa/log/melpa.access.log {
- rotate {
- size 10
- }
- }
- errors /home/melpa/log/melpa.error.log
- header / Strict-Transport-Security "max-age=31536000;"
-}
-
-stable.melpa.org:80 {
- gzip {
- ext *
- level 3
- }
- root /home/melpa/melpa/html
- log /home/melpa/log/melpa.access.log
- errors /home/melpa/log/melpa.error.log
-}
-
-melpa-stable.milkbox.net {
- tls d@milkbox.net
- redir https://stable.melpa.org{uri}
-}
@@ -1,73 +0,0 @@
-# You may add here your
-# server {
-# ...
-# }
-# statements for each of your virtual hosts to this file
-
-##
-# You should look at the following URL's in order to grasp a solid understanding
-# of Nginx configuration files in order to fully unleash the power of Nginx.
-# http://wiki.nginx.org/Pitfalls
-# http://wiki.nginx.org/QuickStart
-# http://wiki.nginx.org/Configuration
-#
-# Generally, you will want to move this file somewhere, and start with a clean
-# file but keep this around for reference. Or just disable in sites-enabled.
-#
-# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
-##
-
-server {
- server_name melpa.milkbox.net;
- rewrite ^ $scheme://melpa.org$request_uri? permanent;
-}
-
-server {
- listen 80; ## listen for ipv4; this line is default and implied
- #listen [::]:80 default ipv6only=on; ## listen for ipv6
-
- root /usr/share/nginx/www;
-
- # Make site accessible from http://localhost/
- server_name localhost;
- server_name melpa.org;
-
- # proxy to Apache 2 and mod_python
- location / {
- proxy_pass http://127.0.0.1:1337/;
- proxy_redirect http://melpa.org:1337/ $scheme://melpa.org/;
- # proxy_redirect off;
- chunked_transfer_encoding off;
-
- gzip on;
- gzip_disable "msie6|Emacs";
-
- gzip_vary on;
- gzip_proxied any;
- gzip_comp_level 6;
- gzip_buffers 16 8k;
- gzip_http_version 1.1;
- gzip_types text/plain text/xhtml text/css text/js text/csv application/javascript application/x-javascript application/json application/xml text/xml application/atom+xml application/rss+xml;
-
- 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_set_header X-Forwarded-Host $host;
- proxy_set_header X-Forwarded-Server $host;
- 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;
- }
-}
-
-
@@ -1,76 +0,0 @@
-# You may add here your
-# server {
-# ...
-# }
-# statements for each of your virtual hosts to this file
-
-##
-# You should look at the following URL's in order to grasp a solid understanding
-# of Nginx configuration files in order to fully unleash the power of Nginx.
-# http://wiki.nginx.org/Pitfalls
-# http://wiki.nginx.org/QuickStart
-# http://wiki.nginx.org/Configuration
-#
-# Generally, you will want to move this file somewhere, and start with a clean
-# file but keep this around for reference. Or just disable in sites-enabled.
-#
-# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
-##
-
-server {
- server_name melpa-stable.milkbox.net;
- server_name hiddencameras.milkbox.net;
- rewrite ^ $scheme://stable.melpa.org$request_uri? permanent;
-}
-
-server {
- server_name melpa.milkbox.net;
- rewrite ^ $scheme://melpa.org$request_uri? permanent;
-}
-
-server {
- listen 80; ## listen for ipv4; this line is default and implied
- #listen [::]:80 default ipv6only=on; ## listen for ipv6
-
- root /usr/share/nginx/www;
-
- # Make site accessible from http://localhost/
- server_name localhost;
- server_name *.melpa.org;
-
- # proxy to Apache 2 and mod_python
- location / {
- proxy_pass http://127.0.0.1:1337/;
- proxy_redirect off;
- chunked_transfer_encoding off;
-
- gzip on;
- gzip_disable "msie6|Emacs";
-
- gzip_vary on;
- gzip_proxied any;
- gzip_comp_level 6;
- gzip_buffers 16 8k;
- gzip_http_version 1.1;
- gzip_types text/plain text/xhtml text/css text/js text/csv application/javascript application/x-javascript application/json application/xml text/xml application/atom+xml application/rss+xml;
-
- 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
@@ -1,99 +0,0 @@
-worker_processes 4;
-pid /home/melpa/var/run/nginx.pid;
-# error_log /dev/null crit;
-daemon off;
-
-events {
- worker_connections 768;
- # multi_accept on;
-}
-
-http {
- ##
- # Basic Settings
- ##
-
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 65;
- types_hash_max_size 2048;
- server_tokens off;
-
- # server_names_hash_bucket_size 64;
-
- charset utf-8;
-
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
-
- ##
- # Logging Settings
- ##
- access_log /home/melpa/log/melpa.access.log combined;
- error_log /home/melpa/log/melpa.error.log info;
- set_real_ip_from 127.0.0.1;
- real_ip_header X-Forwarded-For;
-
-
- ##
- # Gzip Settings
- ##
-
- gzip off;
- gzip_disable "msie6";
- gzip_vary on;
- #gzip_proxied any;
- gzip_comp_level 6;
- gzip_buffers 16 8k;
- gzip_http_version 1.1;
- gzip_types text/plain text/xhtml text/css text/js text/csv application/javascript application/x-javascript application/json application/xml text/xml application/atom+xml application/rss+xml;
-
- ##
- # nginx-naxsi config
- ##
- # Uncomment it if you installed nginx-naxsi
- ##
-
- #include /etc/nginx/naxsi_core.rules;
-
- ##
- # nginx-passenger config
- ##
- # Uncomment it if you installed nginx-passenger
- ##
-
- #passenger_root /usr;
- #passenger_ruby /usr/bin/ruby;
-
- ##
- # Virtual Host Configs
- ##
-
- server {
- server_name melpa.org;
- server_tokens off;
- server_name_in_redirect off;
-
- root /home/melpa/melpa/html;
-
- listen 1337;
-
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /var/www/nginx-default;
- }
- location = /packages/archive-contents {
- default_type text/plain;
- }
- location ~ ^/packages/.*\.el {
- default_type text/plain;
- }
- location ~ ^/packages/.*\.svg {
- add_header Cache-Control no-cache;
- }
- }
-
-
-}
-
Oops, something went wrong.

0 comments on commit fd7cac1

Please sign in to comment.