Revision 2522e489 snf-cyclades-app/conf/20-snf-cyclades-app-api.conf

b/snf-cyclades-app/conf/20-snf-cyclades-app-api.conf
112 112
## the id of the VM. If set to 'None' the first public IPv4 or IPv6 address
113 113
## of the VM will be used.
114 114
#CYCLADES_SERVERS_FQDN = 'snf-%(id)s.vm.example.synnefo.org'
115
#
116
## Description of applied port forwarding rules (DNAT) for Cyclades VMs. This
117
## setting contains a mapping from the port of each VM to a tuple contaning the
118
## destination IP/hostname and the new port: (host, port). Instead of a tuple a
119
## python callable object may be used which must return such a tuple. The caller
120
## will pass to the callable the following positional arguments, in the
121
## following order:
122
## * server_id: The ID of the VM in the DB
123
## * ip_address: The IPv4 address of the public VM NIC
124
## * fqdn: The FQDN of the VM
125
## * user: The UUID of the owner of the VM
126
##
127
## Here is an example describing the mapping of the SSH port of all VMs to
128
## the external address 'gate.example.synnefo.org' and port 60000+server_id.
129
## e.g. iptables -t nat -A prerouting -d gate.example.synnefo.org \
130
## --dport (61000 # $(VM_ID)) -j DNAT --to-destination $(VM_IP):22
131
##CYCLADES_PORT_FORWARDING = {
132
##    22: lambda ip_address, server_id, fqdn, user:
133
##               ("gate.example.synnefo.org", 61000 + server_id),
134
##}
135
#CYCLADES_PORT_FORWARDING = {}

Also available in: Unified diff