Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lelux.fi
Wiki
Commits
c16d2ee0
Commit
c16d2ee0
authored
Jan 31, 2019
by
Elias Ojala
Browse files
Updates like build script, etc.
parent
e9597dc1
Changes
5
Hide whitespace changes
Inline
Side-by-side
README.md
0 → 100644
View file @
c16d2ee0
# Wiki
\ No newline at end of file
_build.sh
0 → 100755
View file @
c16d2ee0
#!/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
_config.yml
View file @
c16d2ee0
...
...
@@ -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
Google search results) and in your feed.xml site description.
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
markdown
:
kramdown
...
...
index.md
View file @
c16d2ee0
...
...
@@ -6,6 +6,7 @@ permalink: /
## Server Linux
*
[
Certbot
](
/certbot
)
*
[
Nginx
](
/nginx
)
*
[
MySQL
](
/mysql
)
*
[
Phusion Passenger
](
/phusion-passenger
)
*
[
Useful tools
](
/server-linux/useful-tools
)
...
...
nginx.md
0 → 100644
View file @
c16d2ee0
---
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment