Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Help about MediaWiki
FUTO
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Introduction to a Self Managed Life: a 13 hour & 28 minute presentation by FUTO software
(section)
Main Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== 6.2 Installing nginx ==== Next up, itโs time to install nginx & everything necessary for us to have it ask for a username and a password to log in. <ol style="list-style-type: decimal;"> <li><p>'''Install Nginx:'''</p> <pre>sudo apt install nginx</pre></li> <li><p>'''Run the following commands:'''</p> <pre>sudo apt update sudo apt install nginx -y</pre></li> <li><p>'''Create a Self-Signed SSL Certificate''' Generate the certificate:</p> <pre>sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt</pre></li></ol> <blockquote>'''Note:''' For the Common Name (CN), use your local domain (e.g., happycloud.home.arpa). </blockquote> <ol start="4" style="list-style-type: decimal;"> <li><p>'''Create Strong Diffie-Hellman Group''', makes security and https better, because we totally need more security on a LAN connection nobody else will be able to connect to besides your kid whoโs trying to troll you with</p> <pre>sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048</pre></li> <li><p>'''Create Password File for Basic Auth''' Install apache2-utils and create the password file:</p> <pre>sudo apt install apache2-utils sudo htpasswd -c /etc/nginx/.htpasswd your_username</pre></li> <li><p>Replace your_username with your desired username.</p></li></ol> <span id="configure-nginx"></span>
Summary:
Please note that all contributions to FUTO may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
FUTO:Copyrights
for details).
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:
Cancel
Editing help
(opens in new window)