~gandelman-a/charms/precise/swift-proxy/utils_sync

« back to all changes in this revision

Viewing changes to hooks/swift-proxy-common

  • Committer: Ryan Finnie
  • Date: 2012-10-02 08:48:45 UTC
  • Revision ID: ryan.finnie@canonical.com-20121002084845-ggj4yx2fjcuu9pli
MakeĀ bind_portĀ configurable

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
LOCALE=$(config-get locale)
7
7
COMMON_NAME=$(config-get common-name)
8
8
PPA=$(config-get swift-release)
 
9
BINDPORT=$(config-get bind-port)
9
10
 
10
11
# Used in proxy-server.conf.  Run one worker per cpu core for now
11
12
CORES=$(cat /proc/cpuinfo | grep processor | wc -l)
47
48
[DEFAULT]
48
49
cert_file = /etc/swift/cert.crt
49
50
key_file = /etc/swift/cert.key
50
 
bind_port = 8080
 
51
bind_port = $BINDPORT
51
52
workers = $CORES
52
53
user = swift
53
54