Kenneth Hsu
a7d15332b6
Ensure that hostname comparisons are not case sensitive.
...
By definition, hostnames should not be case sensitive:
https://tools.ietf.org/html/rfc4343
This fixes issue #4167 .
2020-04-10 14:38:27 -07:00
Kenneth Hsu
2aa76881a5
Mark fields that don't need to be reassigned as readonly.
...
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2019-10-19 13:59:22 -07:00
Kenneth Hsu
457254d9e1
Remove unused local variables.
2019-04-17 20:10:53 -07:00
verhoek
b2cc18426c
Renamed Library.IO to Library.Common.IO.
...
Moved basic Platform functions to Library.Common.Platform.
Turned IO_OS into property within Library.Common.
2018-11-02 21:34:07 +01:00
verhoek
d6cff69d96
Added import.
2018-10-28 12:16:34 +01:00
verhoek
bc053df294
Moved basic IO helper functions to Library.IO.
2018-10-27 12:17:07 +02:00
Kenneth Skovhede
9ba03a3358
Added option to limit the number of allowed hostnames for the webserver
2018-08-07 00:36:12 +02:00
Kenneth Hsu
f12858e6a5
Mark fields that shouldn't be reassigned as readonly.
...
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2018-05-25 10:04:52 -07:00
verhoek
92777a168b
Removed unused imports.
2018-05-16 21:46:42 +02:00
verhoek
abf937249f
Corrected spelling of comparision in server.cs release mode.
2018-05-16 21:40:27 +02:00
Kenneth Skovhede
842fd96543
Implemented a new logging system that is more transparent and allows a more granular way of picking log messages.
...
Added ID's to each log message and each exception to allow later introduction of a Knowledgebase service that explains each error in more detail.
2018-03-15 09:12:34 +01:00
Kenneth Skovhede
9a41cf2867
Fixed not allowing the browser to cache the index.html page.
...
This should fix #2699 , #2635
2018-02-07 23:37:55 +01:00
Kenneth Skovhede
1241a7747d
Added cache expiration headers to static and dynamic responses from the server.
...
This should help with #2699
2018-02-07 21:56:02 +01:00
Tyler Gill
83a1dcfb64
Replace all instances of InvariantCultureIgnoreCase with OrdinalIgnoreCase in string comparisons.
...
InvariantCulture is useful when comparing / sorting human language strings in a culturely correct way. It handles things like accented letters in a way that makes sense to humans (e.g., 'a' should be sorted next to 'á', rather than after 'z').
Ordinal looks just at the raw code points of the characters. As such, it is recommended for use in cases when comparing system strings (file paths, command line parameters, config settings, etc.). Since it doesn't need to use the culture specific sorting rules, this method can often be faster.
For more information, see https://stackoverflow.com/questions/492799/difference-between-invariantculture-and-ordinal-string-comparison (and other related questions)
2017-09-18 23:55:08 -06:00
Kenneth Skovhede
4e5fb1aaa6
Also allow "all" as the interface.
...
This fixes #2706
2017-09-15 08:49:33 +02:00
Kenneth Skovhede
d57215aaef
Switched to using nginx based proxy instead of the slow CGI proxy on Synology
2017-07-03 00:52:40 +02:00
mknjc and GitHub
2f5b19c585
Enable Caching for static webroot files
...
Change the FileModule constructor of "/" to enable "Last-modified" header which allows webbrowsers to cache static files.
2017-05-29 19:51:48 +02:00
Max
9ffe470083
server https tls 1.0 removal
2017-05-17 00:08:40 +02:00
Kenneth Skovhede
702e2ee28f
Removed the CGI entry as it was only used by the greeno theme.
2017-01-25 12:01:50 +01:00
Kenneth Skovhede
3aac440049
Added "Server started on port xxx" message as requested in #1947
2016-09-28 09:56:08 +02:00
Kenneth Skovhede
0c68daff6c
Fixed all whitespace to be 4 spaces instead of tabs
2016-09-15 11:39:27 +02:00
Kenneth Skovhede
3ec81de7cf
Added woff2 to the list of allowed extensions in the webserver
2016-08-05 11:23:18 +02:00
Max
88b2d9bef8
fix for certValid variable 2
2016-06-27 18:34:00 +02:00
Max
5eecf58cac
fix for certValid variable
2016-06-27 18:23:05 +02:00
Max
b1d19210d8
adds ability to save ssl certificate to database
2016-06-26 16:09:07 +02:00
Max
775c635c22
support for specify ssl via command line
2016-06-26 13:47:24 +02:00
Kenneth Skovhede
b1f24a2d9d
Added customization option to also allow "package" overrides
2016-05-13 00:03:16 +02:00
Kenneth Skovhede
eaea4c30cf
Serving OEM files from the installdir
2016-04-22 10:47:53 +02:00
Kenneth Skovhede
e13bb2109e
Added more MimeTypes to support Ember style applications
2015-07-04 14:23:47 +02:00
Kenneth Skovhede
9b51072ee9
Work on a REST API for the server
2015-07-04 13:42:52 +02:00
Kenneth Skovhede
b4b6ad7551
Fixed the index handler
2014-08-15 11:11:51 +02:00
Kenneth Skovhede
ebb88e2120
Added saving the webserver-listen-interface option.
2014-08-15 00:31:26 +02:00
Kenneth Skovhede
b8199ad1c4
Fixed handling of multi-byte characters in both HttpServer and Duplicati.
...
This fixes issue #1085 and issue #1063 .
2014-08-13 23:42:26 +02:00
Kenneth Skovhede
8898cfa23d
Redirect customized folder back to installdir to allow customization
2014-08-05 10:10:27 +02:00
Kenneth Skovhede
0f74ca9ece
Fixed an issue where an update would use the base-install folder's webroot
2014-07-15 17:24:50 +02:00
Kenneth Skovhede
5668aed565
Removed left-over comment
2014-07-15 15:43:02 +02:00
Kenneth Skovhede
7ac374109f
Removed some unused osx-handling
2014-07-07 01:56:07 +02:00
Kenneth Skovhede
6203ed849c
Major refactor of the webserver
...
Added support for setting listening interface for the webserver
Added support for starting the webserver with a password
2014-06-27 13:23:05 +02:00