-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added preferences support, cache support, and other features to Wire
This is a major commit that adds the following features to Aluminum Wire: - Preferences file support - Support for clients caching files (transmitting `Last-Modified` header, serving 304 response codes when appropriate, etc.) - A default 500 error page - A default homepage for Wire - Fixed a bug where requesting a directory caused a file to be served with a `Content-Type` header of `false` - Added `Server` headers to responses - Documentation updates - More changes: see the diffs and new documentation for details
- Loading branch information
Showing
6 changed files
with
224 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"protocol": "http", | ||
"indexRedirect": true, | ||
"errorPages": { | ||
"notFound": { | ||
"URI": "../../usr/resources/wire/errors/404.html", | ||
"encoding": "utf8" | ||
}, | ||
"serverError": { | ||
"URI": "../../usr/resources/wire/errors/500.html", | ||
"encoding": "utf8" | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>500 Error | Aluminum Wire</title> | ||
</head> | ||
<body> | ||
<h1>500 Error</h1> | ||
<p>The server encountered an internal error. Please contact the system administrator or try again later.</p> | ||
<p> | ||
Error Message: $errmessage$<br /> | ||
Error Code: $errcode$<br /> | ||
Error Number: $errno$ | ||
</p> | ||
<hr /> | ||
<p>Aluminum Wire on $osplatform$ ($ostype$) version $osversion$ at port $port$</p> | ||
<div style="text-align: center"> | ||
<img src="/aluminum-internals/logo.svg" alt="Aluminum logo" style="width: 150pt" /> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Welcome | Aluminum Wire</title> | ||
</head> | ||
<body> | ||
<h1>Welcome to Aluminum Wire!</h1> | ||
<p> | ||
Congratulations! If you're seeing this page, it means that you have successfully installed and set up Aluminum Wire. Feel free to delete this file from your <code>/usr/resources/wire/serve</code> directory. You can always find it again at <code>/defaults/resources/wire/serve/index.html</code>. | ||
</p> | ||
<p> | ||
Here are some links to help you get started:<br /> | ||
<a href="https://github.com/NovaDevelopment/aluminum">The Aluminum Repository on GitHub</a><br /> | ||
<a href="https://aluminumjs.readthedocs.io/">Aluminum Documentation</a> | ||
</p> | ||
<hr /> | ||
<div style="text-align: center; margin-bottom:10pt;"> | ||
<img src="/aluminum-internals/logo.svg" alt="Aluminum logo" style="width: 150pt;" /> | ||
</div> | ||
<small> | ||
The Aluminum project is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br /> | ||
The Aluminum project is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the <a href="https://www.gnu.org/licenses/agpl-3.0.txt">GNU Affero General Public License</a> for more details. | ||
</small> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters