Aaron Tulino
e5dacb9d6a
Add enable-directory-listings
flag
...
This controls what happens when someone tries to request a path which is just a directory (not a file):
When true (default), responds with a browsable directory listing (current behavior)
When false, responds with the same 404 page as is provided when attempting to access a nonexistant file
This prevents someone from browsing all of your static files by simply walking through the directory tree
2023-11-23 01:25:47 -08:00
Konrad Höffner
d82050d9bd
Create clickable link. Resolve #52 .
2022-03-03 12:52:30 +01:00
deranjer
7892ac7921
updating logRequest to be deprecated but accepted with warning messages about deprecation
2022-02-13 12:51:23 -05:00
deranjer
183e471a00
adding logging
2022-02-11 21:29:55 -05:00
phartenfeller
3438532c3f
Config path can be specified with a parameter
2020-09-28 19:47:48 +02:00
phartenfeller
1557fd3591
split headerConfig logic to new file and middleware
2020-09-27 18:15:09 +02:00
phartenfeller
2c00fb0d38
use json config + changed headers to key value array
2020-09-23 20:58:22 +02:00
phartenfeller
adb719ea4c
custom header test
2020-09-23 18:09:44 +02:00
Dj Walker-Morgan
eba8b55f77
Merge branch 'master' into resolving-conflict-codepope
2020-09-14 10:05:03 +01:00
Dj Walker-Morgan
75ec8df8c7
Add promote check (oops)
2020-09-10 13:00:09 +01:00
Dj Walker-Morgan
22acfdcc3c
Added -https-promote switch
2020-09-08 14:52:18 +01:00
Dj Walker-Morgan
8c42b65687
Merge github.com/PierreZ/goStatic/pull/34/
2020-09-08 10:29:44 +01:00
Micky Del Favero
b17c697cca
Added logRequest flag and function to log request
...
Signed-off-by: Micky Del Favero <micky@BeeCloudy.net>
2020-08-22 15:26:07 +02:00
Maciej Kopeć
7278807b24
Add gzip handling
2020-02-26 21:39:06 +01:00
Maximilian Kalus
7bbf733d98
Add /health endpoint for health checks. Can be enabled using --enable-health.
2019-11-26 13:27:20 +01:00
Nigel Sim
90ee9f39bc
feat: recursive fallback resolution
2019-10-15 23:02:26 +10:00
Mykola Gurov
e00083992e
--fallback=/index.html to account for SPA routing
...
closes #8
2018-07-12 20:58:11 +02:00
mre
f6b205a2fb
Add --context parameter to allow the definition of an initial url path
2018-03-21 09:08:30 +01:00
Pierre Zemb
0127bd130c
fix #9 : right header to force authenticate
...
More about basic auth: https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication
2017-11-18 16:39:24 +01:00
Pierre Zemb
6b080f3821
Fixes #6 : add http basic auth
2017-11-14 00:19:45 +01:00
Aparajit Raghavan
c24df1f71d
Add a flag to append a fixed HTTP header to all responses.
2017-05-30 05:01:51 +00:00
Pierre Zemb
f643438420
feat: removing framework, pure go implementation
2017-05-28 14:37:34 +02:00
Pierre Zemb
63c52f19e2
feat: upgrading echo, removing makefile
2017-05-27 20:57:07 +02:00
PierreZ
b4d0cb51ef
adding new way to generate cert
2016-01-05 11:08:03 +01:00
PierreZ
6acfaecb24
fixing readme and adding some comments
2015-07-19 15:37:42 +02:00
PierreZ
60df40beb9
Adding generation of cert and key, and dockerfile
2015-07-19 15:11:03 +02:00
PierreZ
38fe333888
adding first batch of code
2015-07-16 21:54:40 +02:00