path: root/doc/forum
diff options
authorgueux2015-07-31 10:59:02 +0000
committeradmin2015-07-31 10:59:02 +0000
commitfaa1468cc1509053a0b569139888ad8679598af3 (patch)
treec4b8024b0c20f8376289bcc3ad1dca6d8c0ed983 /doc/forum
parentb39f55238106774e5a078c968e2b55188506ff30 (diff)
Diffstat (limited to 'doc/forum')
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/forum/parsing_a_config_file.mdwn b/doc/forum/parsing_a_config_file.mdwn
new file mode 100644
index 00000000..cbf0952a
--- /dev/null
+++ b/doc/forum/parsing_a_config_file.mdwn
@@ -0,0 +1,11 @@
+I have an issue with how parsing a tor config file. Hidden services are defined like this: first you specify a dir with "HiddenServiceDir" and then, (on the following lines) you define the port mappings with one or more "HiddenServicePort". You can have multiple hidden services defined in the same tor config file.
+ HiddenServiceDir /var/lib/tor/myhttponion
+ HiddenServicePort 80
+ HiddenServicePort 8080
+ HiddenServiceDir /var/lib/tor/myirconion
+ HiddenServicePort 6667
+I used "configured" to define "hiddenService" in "Propellor.Property.Tor", but I didn't realized that there can be multiple hidden services, each with multiple ports. So, defining multiple hiddenService properties does not work as expected ("Propellor.Property.Tor.configured" assumes there is only one line for one config variable)...
+A kind of general file parsing functions on multilines (based on AST?) may be a nice addition to Propellor.Property.File, but it sounds too hard for my skills :-). Maybe someone would have an idea to solve this problem?