Skip to content

Instantly share code, notes, and snippets.

@lwhsu
Created December 24, 2012 08:30
Show Gist options
  • Save lwhsu/4368352 to your computer and use it in GitHub Desktop.
Save lwhsu/4368352 to your computer and use it in GitHub Desktop.
--- remap.config.default 2012-06-25 12:32:44.316308874 +0800
+++ remap.config 2012-06-25 13:35:54.963674301 +0800
@@ -123,3 +123,6 @@
# be used as substitution place holders ($0 will be the entire input string)
# 3) The number of substitutions in the expansion string is limited to 10
#
+#map http://update.tw.FreeBSD.org/ http://update.FreeBSD.org/
+map http://update.tw.FreeBSD.org/ http://update.FreeBSD.org/
+map http://portsnap.tw.FreeBSD.org/ http://portsnap.FreeBSD.org/
--- records.config.default 2012-06-25 12:32:44.330312442 +0800
+++ records.config 2012-12-24 16:29:55.826574702 +0800
@@ -60,7 +60,7 @@
# the example below. Note
#
##############################################################################
-#LOCAL proxy.local.incoming_ip_to_bind STRING 192.168.101.17
+LOCAL proxy.local.incoming_ip_to_bind STRING 140.113.17.206
##############################################################################
#
# Alarm Configuration
@@ -81,7 +81,7 @@
# string of ports, separated by whitespace. The port attributes
# should be set to X(default behavior). For example...
# server_other_ports STRING 1234:X 12345:X
-CONFIG proxy.config.http.server_port INT 8080
+CONFIG proxy.config.http.server_port INT 80
CONFIG proxy.config.http.server_port_attr STRING X
# to enable IPv6 listening on port 8080:
# CONFIG proxy.config.http.server_other_ports STRING 8080:X6
@@ -202,7 +202,6 @@
#
# The default (0x482 or 1154) denies all PUSH, PURGE and DELETE requests (except from 127.0.0.1)
CONFIG proxy.config.http.quick_filter.mask INT 0x482
-
#################
# cache control #
#################
@@ -211,7 +210,7 @@
CONFIG proxy.config.http.cache.ims_on_client_no_cache INT 1
CONFIG proxy.config.http.cache.ignore_server_no_cache INT 0
CONFIG proxy.config.http.cache.ignore_client_cc_max_age INT 0
-CONFIG proxy.config.http.normalize_ae_gzip INT 0
+CONFIG proxy.config.http.normalize_ae_gzip INT 0
# cache responses to cookies has 5 options:
# 0 - do not cache any responses to cookies
# 1 - cache for any content-type
@@ -242,7 +241,7 @@
# 0 - No required headers to make document cachable
# 1 - "Last-Modified:", "Expires:", or "Cache-Control: max-age" required
# 2 - explicit lifetime required, "Expires:" or "Cache-Control: max-age"
-CONFIG proxy.config.http.cache.required_headers INT 2
+CONFIG proxy.config.http.cache.required_headers INT 0
CONFIG proxy.config.http.cache.max_stale_age INT 604800
CONFIG proxy.config.http.cache.range.lookup INT 1
########################
@@ -263,7 +262,6 @@
# The HTTP stats are expensive, turn off you don't need them #
##############################################################
CONFIG proxy.config.http.enable_http_stats INT 1
-
##############################################################################
#
# Customizable User Response Pages
@@ -310,8 +308,8 @@
# default the ram cache size to AUTO_SIZE (-1) based on cache size
# (approximately 1 MB of RAM cache per GB of disk cache)
# alternatively, set to a fixed value such as 20971520 (20MB)
-CONFIG proxy.config.cache.ram_cache.size INT -1
-CONFIG proxy.config.cache.ram_cache_cutoff INT 4194304
+CONFIG proxy.config.cache.ram_cache.size INT 256M
+CONFIG proxy.config.cache.ram_cache_cutoff INT 128M
# Replacement algorithm
# 0 : Clocked Least Frequently Used by Size (CLFUS) w/optional compression
# 1 : LRU w/o optional compression - trivially simple
@@ -366,6 +364,7 @@
# forward or transparent proxies, but requires that the resolver populates
# the queries section of the response properly.
CONFIG proxy.config.dns.validate_query_name INT 0
+CONFIG proxy.config.srv_enabled INT 1
##############################################################################
#
# HostDB
@@ -591,3 +590,4 @@
#
##############################################################################
CONFIG proxy.config.task_threads INT 2
+CONFIG proxy.config.cluster.cluster_configuration STRING cluster.config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment