summaryrefslogtreecommitdiff
path: root/templates/server.erb
diff options
context:
space:
mode:
authorJustin Lambert <jlambert@eml.cc>2012-12-31 13:20:25 -0700
committerJustin Lambert <jlambert@eml.cc>2012-12-31 13:20:25 -0700
commitbd43cc37ba2c1de8466cbee5c94a68510becbbff (patch)
treeec4562e5f94e0b14d0ce44fd26af7ddab738f387 /templates/server.erb
parentf7498ecfb1a0c80cb310f0ab5dcbc81728c713f1 (diff)
move default options to parameters
Diffstat (limited to 'templates/server.erb')
-rw-r--r--templates/server.erb9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/server.erb b/templates/server.erb
new file mode 100644
index 0000000..1e41aa1
--- /dev/null
+++ b/templates/server.erb
@@ -0,0 +1,9 @@
+mode server
+client-config-dir /etc/openvpn/<%= scope.lookupvar('name') %>/client-configs
+ca /etc/openvpn/<%= scope.lookupvar('name') %>/keys/ca.crt
+cert /etc/openvpn/<%= scope.lookupvar('name') %>/keys/server.crt
+key /etc/openvpn/<%= scope.lookupvar('name') %>/keys/server.key
+dh /etc/openvpn/<%= scope.lookupvar('name') %>/keys/dh1024.pem
+proto <%= scope.lookupvar('proto') %>
+port <%= scope.lookupvar('port') %>
+<%= scope.lookupvar('compression') %>