summaryrefslogtreecommitdiffstats
path: root/htdocs/software
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/software')
-rw-r--r--htdocs/software/index.html20
-rw-r--r--htdocs/software/samanthony.xyz.html50
2 files changed, 70 insertions, 0 deletions
diff --git a/htdocs/software/index.html b/htdocs/software/index.html
new file mode 100644
index 0000000..ecf8d95
--- /dev/null
+++ b/htdocs/software/index.html
@@ -0,0 +1,20 @@
+{{ define "title" }}
+ <title>software | samanthony.xyz</title>
+{{ end }}
+
+{{ define "body_content" }}
+ <header>
+ <h1>Software Hosted Here</h1>
+ <hr>
+ </header>
+ <table>
+ <tr>
+ <th>name</th>
+ <th>description</th>
+ </tr>
+ <tr>
+ <td><a href="samanthony.xyz.html">samanthony.xyz</a></th>
+ <td>This website</th>
+ </tr>
+ </table>
+{{ end }}
diff --git a/htdocs/software/samanthony.xyz.html b/htdocs/software/samanthony.xyz.html
new file mode 100644
index 0000000..dc0c38c
--- /dev/null
+++ b/htdocs/software/samanthony.xyz.html
@@ -0,0 +1,50 @@
+{{ define "title" }}
+ <title>software | samanthony.xyz</title>
+{{ end }}
+
+{{ define "style" }}
+<style>
+ h1, h2 { margin-bottom: 0px; }
+ h2 {
+ margin-top: 0px;
+ padding-left: 1em;
+ color: grey;
+ }
+</style>
+{{ end }}
+
+{{ define "body_content" }}
+ <header>
+ <h1>samanthony.xyz</h1>
+ <h2>This website</h2>
+ <hr>
+ </header>
+ <p>
+ Get a copy of the source code with
+ <code>git clone git://samanthony.xyz/samanthony.xyz.git</code>.
+ </p>
+ <p>
+ The site uses HTML templates to avoid tedium and for the ability to make
+ small changes across the entire site without editing multiple files. It uses
+ the html/template package included in Go's standard library.
+ </p>
+ <p>
+ A server is required to serve these templates. Once again Go provides with
+ the built in http package. This makes writing a web server extremely easy.
+ All you have to do is write a function to handle incoming requests and call
+ http.ListenAndServe(). Painless.
+ </p>
+ <p>
+ Since I'm running OpenBSD, TLS can be dealt with external to the webserver
+ by using relayd. As an aside, I encourage anyone looking for an operating
+ system to give OpenBSD a look. It's been an absolute pleasure to work with
+ so far. As long as you don't expect it to be exactly like a Linux-based
+ system (it's not), then not only is it more secure, but also
+ <em>easier to use</em> than something Linux-based. Even for a noob like
+ myself. Sane design and good documentation go a long way.
+ </p>
+ <p>
+ Inspiration was taken from httpd and the server runs chroot'd. When
+ serving content it also drops down to an unprivileged user with setuid.
+ </p>
+{{ end }}