<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.helionet.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dkobrin</id>
	<title>HelioHost Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.helionet.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dkobrin"/>
	<link rel="alternate" type="text/html" href="https://wiki.helionet.org/Special:Contributions/Dkobrin"/>
	<updated>2026-04-27T08:10:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.helionet.org/index.php?title=Configuring_Environment&amp;diff=1932</id>
		<title>Configuring Environment</title>
		<link rel="alternate" type="text/html" href="https://wiki.helionet.org/index.php?title=Configuring_Environment&amp;diff=1932"/>
		<updated>2025-07-28T22:12:49Z</updated>

		<summary type="html">&lt;p&gt;Dkobrin: /*Configuring Environmental Variables*/&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== Python ==&lt;br /&gt;
For Python, Flask, and Django, place your environment variables in a &amp;quot;.env&amp;quot; file located in your app&#039;s root directory. This is the same directory that contains your &amp;quot;.htaccess&amp;quot; file. The web server will restrict remote access to this file.&lt;br /&gt;
&lt;br /&gt;
This file should be a list of key/value pairs similar to:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEV_ENV=development&lt;br /&gt;
SECRET_API_KEY=***my_secret_key***&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Info|You can add the following code to your &amp;quot;.htacess&amp;quot; file as an extra explicit instruction for Apache to restrict access}}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#hide .env files from http access&lt;br /&gt;
&amp;lt;FilesMatch &amp;quot;\.env&amp;quot;&amp;gt;&lt;br /&gt;
    Order allow,deny&lt;br /&gt;
    Deny from all&lt;br /&gt;
&amp;lt;/FilesMatch&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Accessing the variables ===&lt;br /&gt;
==== Python and Flask ====&lt;br /&gt;
To access your environment variables from python you will nee to load them first using the &amp;lt;code&amp;gt;dotenv&amp;lt;/code&amp;gt; package and the operating system environment with &amp;lt;code&amp;gt;os&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from dotenv import load_dotenv&lt;br /&gt;
from os import environ&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will need to give load_dotenv the path to your &amp;quot;.env&amp;quot; file and then access the variables.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#replace MY_USER_ID and MY_APP_DIR with your account root and app directory&lt;br /&gt;
load_dotenv(&amp;quot;/home/MY_USER_ID.helioho.st/MY_APP_DIR/.env&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
my_dev_environment = os.environ.get(&amp;quot;DEV_ENV&amp;quot;) # &amp;quot;development&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Dkobrin</name></author>
	</entry>
	<entry>
		<id>https://wiki.helionet.org/index.php?title=Tutorials&amp;diff=1931</id>
		<title>Tutorials</title>
		<link rel="alternate" type="text/html" href="https://wiki.helionet.org/index.php?title=Tutorials&amp;diff=1931"/>
		<updated>2025-07-28T21:27:53Z</updated>

		<summary type="html">&lt;p&gt;Dkobrin: /* Written Tutorials */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- The video tutorials are listed at the top of the page for better visibility, ordered from newest to oldest. &lt;br /&gt;
The written tutorial sections are alphabetized for now but could be re-arranged in order of popularity. &lt;br /&gt;
When creating new written tutorial pages, we can add the code: [[Category:Tutorials]] to the bottom since this should auto-add the new pages to the category page that can be linked to by a Discord chatbot. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Video Tutorials ==&lt;br /&gt;
&lt;br /&gt;
All video tutorials are hosted on the [https://www.youtube.com/@HelioHostYT HelioHost YouTube channel]. &lt;br /&gt;
&lt;br /&gt;
If you enjoy the videos we post, please subscribe to our channel. As a small non-profit funded by donations, we don&#039;t have a huge budget to afford paid advertising. The more free advertising we get from word of mouth recommendations, social media likes, and channel subscriptions goes a long way towards helping us find more users and continuing to grow. Even if you can&#039;t [https://heliohost.org/donate/ donate], supporting our content is one of the great ways you can [[:How_You_Can_Help | help us for free]].&lt;br /&gt;
&lt;br /&gt;
* [https://youtu.be/Fgmzvrtu7sA?si=TkEKLMCwJKl_M8Sr Creating a Modded Minecraft Server]&lt;br /&gt;
* [https://youtu.be/JAXDD7VYHUk?si=Xi5Hb8nofo3IPzFI How to create a Minecraft Server]&lt;br /&gt;
* [https://youtu.be/qXp6pw_aV0w?si=8T6b4bjmomK6cbhQ How to issue a Google Trust Services Certificate]&lt;br /&gt;
* [https://youtu.be/IbUi2gcLbuA?si=qipzIXg9humCiExx Installing MariaDB &amp;amp; PHP on a HelioHost VPS]&lt;br /&gt;
* [https://youtu.be/zHwWs7Tt2zc?si=yg4o_gZeuiEyuHmc Installing NGINX on a HelioHost VPS]&lt;br /&gt;
* [https://youtu.be/-9Q9SAONgtM?si=2fL_z6Jj-fxvU5aB Hosting a Discord Bot with HelioHost]&lt;br /&gt;
* [https://youtu.be/Ak2yI8w-mew?si=NH7E7YYpAtFpmztE Hosting a Node.js site with HelioHost]&lt;br /&gt;
* [https://youtu.be/taTIjYTidcU?si=Up6Yw6KUdjr6KSUV Getting Started with a HelioHost VPS]&lt;br /&gt;
&lt;br /&gt;
== Written Tutorials ==&lt;br /&gt;
&lt;br /&gt;
* [[:Astro|Astro]]&lt;br /&gt;
&lt;br /&gt;
* [[:Discord_Bot|Discord Bot]]&lt;br /&gt;
&lt;br /&gt;
* [[:Django|Django Tutorials]]&lt;br /&gt;
** [[:Django_on_HelioHost|Django on HelioHost]]&lt;br /&gt;
** [[:Converting_an_Existing_Django_App|Converting an Existing Django App to work on HelioHost]]&lt;br /&gt;
&lt;br /&gt;
* [[:DNS_Record_Management|DNS Record Management Tutorials]]&lt;br /&gt;
** [[:HelioHost_DNS_Records|HelioHost DNS Records]]&lt;br /&gt;
*** [[:Google_Site_Verification|Google Site Verification]]&lt;br /&gt;
*** [[:Manage_HelioHost_DNS|Manage HelioHost DNS]]&lt;br /&gt;
** [[:External_DNS_Hosting|External DNS Hosting]]&lt;br /&gt;
*** [[:Cloudflare_DNS_Records|Cloudflare DNS Record Management]]&lt;br /&gt;
*** [[:Namecheap_DNS_Records|Namecheap DNS Record Management]]&lt;br /&gt;
&lt;br /&gt;
* [[:Flask|Flask]]&lt;br /&gt;
&lt;br /&gt;
* [[:Gatsby|Gatsby]]&lt;br /&gt;
&lt;br /&gt;
* [[:Golang|Golang as CGI]]&lt;br /&gt;
&lt;br /&gt;
* [[:Node.js|Node.js Tutorials]]&lt;br /&gt;
** [[:Node.js|Node.js]]&lt;br /&gt;
** [[:Express|Express.js]]&lt;br /&gt;
** [[:Next.js|Next.js]]&lt;br /&gt;
&lt;br /&gt;
* [[:Perl|Perl]]&lt;br /&gt;
&lt;br /&gt;
* [[:Plesk Tutorials|Plesk Tutorials]]&lt;br /&gt;
** [[:View_Error_Logs|View Error Logs in Plesk]]&lt;br /&gt;
** [[:Account_Backups|Account Backups]]&lt;br /&gt;
** [[:Create_Website|Creating a Website]]&lt;br /&gt;
** [[:GitHub_Webhooks|Update Your Website with GitHub Webhooks and Plesk]]&lt;br /&gt;
** [[:Cron_Jobs|Cron Jobs]]&lt;br /&gt;
** [[:Password_Protect_a_Directory|Password Protect a Directory in Plesk]]&lt;br /&gt;
** [[:Custom_Error_Pages|Creating Custom Error Pages]]&lt;br /&gt;
&lt;br /&gt;
* [[:Python|Python]]&lt;br /&gt;
&lt;br /&gt;
* [[:Ruby_on_Rails|Ruby on Rails]]&lt;br /&gt;
&lt;br /&gt;
* [[:Configuring_Environment|Configuring the Environment]]&lt;br /&gt;
&lt;br /&gt;
* [[:VPS|VPS Tutorials]]&lt;br /&gt;
** [[:NGINX|NGINX]]&lt;br /&gt;
** [[:VPS_WordPress|Installing WordPress on a VPS running Hestia Control Panel]]&lt;br /&gt;
** [[:VPS_Email|Setting Up Email on a VPS running Hestia Control Panel]]&lt;br /&gt;
&lt;br /&gt;
== Tutorial Suggestions == &lt;br /&gt;
&lt;br /&gt;
Please let us know if there is a specific topic that you think would be good for our growing collection of tutorial videos and written guides. You can post your suggestions in our [https://helionet.org/index/forum/45-customer-service/?do=add Customer Service forum]. &lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>Dkobrin</name></author>
	</entry>
</feed>