Commit c16d2ee0 authored by Elias Ojala's avatar Elias Ojala
Browse files

Updates like build script, etc.

parent e9597dc1
# Wiki
\ No newline at end of file
#!/usr/bin/env bash
# Intended to be run on server.
EXPECTED_HOSTNAME="fi1"
if [ "$(hostname)" == $EXPECTED_HOSTNAME ]; then
rm -rf _site/
bundle exec jekyll build
mv _site/ /var/www/wiki.lelux.fi
else
echo "You're running it on \"$(hostname)\". You're supposed to run it on \"$EXPECTED_HOSTNAME\"!"
fi
\ No newline at end of file
...@@ -12,7 +12,7 @@ description: > # this means to ignore newlines until "baseurl:" ...@@ -12,7 +12,7 @@ description: > # this means to ignore newlines until "baseurl:"
line in _config.yml. It will appear in your document head meta (for line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description. Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog baseurl: "" # the subpath of your site, e.g. /blog
url: "https://wiki.theel0ja.info" # the base hostname & protocol for your site url: "https://wiki.lelux.fi" # the base hostname & protocol for your site
# Build settings # Build settings
markdown: kramdown markdown: kramdown
......
...@@ -6,6 +6,7 @@ permalink: / ...@@ -6,6 +6,7 @@ permalink: /
## Server Linux ## Server Linux
* [Certbot](/certbot) * [Certbot](/certbot)
* [Nginx](/nginx)
* [MySQL](/mysql) * [MySQL](/mysql)
* [Phusion Passenger](/phusion-passenger) * [Phusion Passenger](/phusion-passenger)
* [Useful tools](/server-linux/useful-tools) * [Useful tools](/server-linux/useful-tools)
......
---
title: Nginx
permalink: /nginx
---
Most of the configuration can be found from [Certbot](/certbot) page.
## Generating `.htpasswd`
```bash
sudo htpasswd -c .htpasswd username
```
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment