OpenGu...Config(3pm)
π OpenGuides::Config π
okay bestie, gather round, because we're diving into OpenGuides::Config β that's the 3pm manual, aka the User Contributed Perl Documentation section, aka the place where Perl modules spill their whole life story. This one handles the OpenGuides config variables, and yes it is exactly as chaotic-iconic as that sounds. π
β¨ NAME β¨
OpenGuides::Config β bestie, it literally handles OpenGuides configuration variables. That's the whole job. That's the vibe. π
πΈ DESCRIPTION πΈ
It does config stuff for OpenGuides. Periodt. π
It's distributed and installed as part of the OpenGuides project, and it is not intended for independent installation β so don't try to adopt it and raise it on your own, it already has a family. π«Ά
Real talk: this documentation is probably only useful to OpenGuides developers. If that's not you, you can still read it for fun, no gatekeeping here. β¨
π¦ METHODS π¦
π new
my $config = OpenGuides::Config->new( file => "wiki.conf" );
It initialises itself from the config file you specified, plus environment variables of the form OPENGUIDES_CONFIG_READ_ONLY. π
Any variable that isn't set in that file but does have a sensible default gets initialised the way we describe down in ACCESSORS. Everything else? Gets a value of undef. Yeah. Not set. Blank. The void. π
my $config = OpenGuides::Config->new( vars => { dbname => "foo" } );
Same deal as above, except it pulls the variables from a hashref you supply instead of from a file. Iconic, honestly. β¨
π ACCESSORS π
Every single accessor below is read-write. And on top of that, each one also has a read-write accessor named like dbname__qu β that one holds an English-language question suitable for asking for a value for that variable. π
You shouldn't write to those __qu ones, but like... nothing stops you. It's not enforced. Do with that information what you will. π
The defaults mentioned below are the ones applied when ->new is called, and only to variables that weren't supplied in the config file.
dbnameβ no default listed, it just vibes.dbuserβ also just vibing.dbpassβ your lil secret. πdbhostβ where the database lives.dbportβ the door number.dbencodingβ encoding, bestie.script_nameβ default:"wiki.cgi"install_directoryβ default:"/usr/lib/cgi-bin/openguides/"script_urlβ and here's the tea: this one is constrained to always end in/β¨custom_lib_pathβ custom lib path, as advertised.use_pluceneβ default:trueuse_lucyβ default:falsesearch_content_munger_moduleβ the munger. π§indexing_directoryβ default:"/usr/lib/cgi-bin/openguides/indexes"enable_page_deletionβ default:falseadmin_passβ default:"Change This!"(bestie. change it. no cap. π)stylesheet_urlβ the drip. πsite_nameβ default:"Unconfigured OpenGuides site"navbar_on_home_pageβ default:truerecent_changes_on_home_pageβ default:truerandom_page_omits_localesβ default:falserandom_page_omits_categoriesβ default:falsecontent_above_navbar_in_htmlβ default:falsehome_nameβ default:"Home"site_descβ default:"A default configuration of OpenGuides"default_cityβ default:"London"default_countryβ default:"United Kingdom"default_languageβ default:"en"http_charsetβ charset time.contact_emailβ how the people reach you. π§formatting_rules_nodeβ default:"Text Formatting Examples"formatting_rules_linkβ default:"http://openguides.org/text_formatting"backlinks_in_titleβ default:falsegeo_handlerβ default:1ellipsoidβ default:"WGS-84"use_leafletβ leaflet or not, your call.gmaps_api_keyβ the key. πcentre_longβ centre longitude, lowkey.centre_latβ centre latitude, highkey.default_gmaps_zoomβ zoom level default.default_gmaps_search_zoomβ search zoom level default.show_gmap_in_node_displayβ show it or don't.force_wgs84β force it. πͺgoogle_analytics_keyβ analytics key.licence_nameβ the licence name. (British spelling, we don't make the rules. π¬π§)licence_urlβ the licence URL.licence_info_urlβ the licence info URL.spam_detector_moduleβ begone, spam. π«host_checker_moduleβ checks hosts, apparently.custom_macro_moduleβ macros but make them yours.static_pathβ static path.static_urlβ and same energy asscript_url: this one is constrained to always end in/β¨send_moderation_notificationsβ send them or nah.moderate_whitelistβ the whitelist, obviously.website_link_max_charsβ default:25read_onlyβ read only mode, go off.responsiveβ responsive design, slay. π±
π AUTHOR π
The OpenGuides Project (openguides-dev@lists.openguides.org) β say hi, they're lovely. π«Ά
π COPYRIGHT π
Copyright (C) 2004-2020 The OpenGuides Project. All Rights Reserved.
The OpenGuides distribution is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π
β SEE ALSO β
OpenGuidesβ go read that one next, bestie, it's the main character. π
and that's the whole page, no crumbs left. π
this was documented as perl v5.32.0, dated 2021-01-30, and yeah the footer says OpenGu...Config(3pm) because apparently even the footer got shy. stay configured, bestie π¦β¨
π¦ where this page comes from
- debian bookworm: openguides 0.84-1
- ubuntu jammy: openguides 0.84-1
- ubuntu noble: openguides 0.84-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms