-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblogPoster_configuration_example.rb
110 lines (93 loc) · 4.04 KB
/
blogPoster_configuration_example.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Configuration for blogPoster
# Pick a text editor to edit the title and text of your posts:
# The default is vim for console vim. You can change the value
# of this variable to the executable for any editor
# you wish to use. It might work, it might not.
#
# For Windows, notepad is a good choice, though I prefer
# vim even in that environment. Gvim also works.
# Check the README for tips on which editors work
# in the various environments you can use
# to run this program.
# I tend to use Vim/Vi, and I've found that while "vim"
# works on some Linux and even Windows systems (with Vim
# installed), my new iMac running Debian 10 wanted "vi"
# instead. Otherwise, it didn't work. Experiment until you
# find what does work.
#
# GUI editors can be touchy, Geany works well in Linux, but
# after editing your post title or text, you must quit from
# the menu or with ctrl-q. If you quit by closing the window,
# Ruby doesn't know you've left the editor, and the script will
# hang. Console programs like Vim don't have these issues.
# Examples:
# @your_text_editor = "vim"
# @your_text_editor = "vi"
# @your_text_editor = "gvim"
# @your_text_editor = "nano"
# @your_text_editor = "joe"
# @your_text_editor = "geany"
# @your_text_editor = "notepad"
# @your_text_editor = "notepad++"
@your_text_editor = "vim"
# Maximum length of file names for blog uploads:
# This is both to keep Ruby from crashing
# and to keep file names at a reasonable length.
#
@max_file_name_length = 100
# File name extension
# Make this whatever your blog/microblog
# is looking for. Some want .txt, many want .md.
# Don't forget the dot.
#
# Examples
#
# @file_name_extension = ".md"
# @file_name_extension = ".html"
#
@file_name_extension = ".txt"
# Twitter API
@twitter_consumer_key = "this_is_a_pretty_long_string_of_characters_for_the_Twitter_API"
@twitter_consumer_secret = "this_is_an_even_longer_string_of_characters_for_the_Twitter_API"
@twitter_access_token = "this_is_yet_another_long_string_of_characters_for_the_Twitter_API"
@twitter_access_token_secret = "just_another_long_string_of_characters_for_the_Twitter_API"
@twitter_max_length = 280
# Mastodon API
@mastodon_base_url = "http://your.mastodon.instance"
@mastodon_bearer_token = "a_long_string_of_characters"
# Default post length for Mastodon is 500 characters
# but can be different depending on an instance's setup.
# All links in Mastodon count as 23 characters, no matter
# how long they are.
@mastodon_max_length = 500
# FTP account and server information
@your_ftp_domain = "ftp.YOUR_DOMAIN_HERE.com"
@your_ftp_login_name = "your_FTP_server_login_name"
@your_ftp_password = "your_FTP_server_password"
@your_ftp_social_directory = "/here/is/the/path/to/the/directory/where/your/social/posts/live"
@your_ftp_other_directory = "/here/is/the/path/to/another/directory/on/your/server/totally/optional"
# Set @ping_needed = true if you need to ping a certain URL to "build" your site
# (or its index) after an entry is uploaded. Otherwise set it to false.
# If @ping_needed = true, set @your_website_to_ping = "http://the_actual_url_you_need_to_make_it_happen.
#
# For an Ode site using the Indexette add-in, you would have:
#
# @ping_needed = true
# @your_website_to_ping = "http://your_url.com?reindex=y"
#
@ping_needed = true
# Change this to the URL that pings your particular web site
@your_website_to_ping = "http://myblog.com/requires/calling/a/special/url/to/rebuild/the/index"
# Host to ping -- checking for a live Internet connection
#
# You don't have to change this parameter unless you want to.
# The script pings a known server to check for a live Internet connection, and
# a great "candidate" for this is a big-time DNS server like Cloudflare's 1.1.1.1
#
# Use a well-known server, or one well-known to you.
# Other candidates include:
# Google's DNS: 8.8.8.8 or 8.8.4.4
# Cloudflare's 1.1.1.1
# The IP of your own server
#
@host_to_ping = "1.1.1.1"