Solderpunk
3d4d830e98
Merge pull request 'Add "AUTH_TYPE" environment variable when client cert is present' ( #14 ) from khuxkm/molly-brown:master into master
...
Reviewed-on: #14
2 years ago
makeworld
e0e0cf7dd6
Don't include port in REMOTE_ADDR
2 years ago
Robert Miles
06ae7c0442
Add "AUTH_TYPE" environment variable when client cert is present
...
This makes it easier to detect when a client cert is available without having to look before you leap and attempt to access any of the TLS_* variables.
2 years ago
Solderpunk
7d8bacdc90
Log stderr from CGI processes which exit with non-zero status to the error log. Closes #7 .
3 years ago
Solderpunk
f7e588dfae
More and better error logging.
3 years ago
Solderpunk
821a862036
Use standard library logging facilities for error log.
3 years ago
Solderpunk
2a263e5e70
Rewrite SCGI support to use prefixes, not regexps, and provide the same SCRIPT_PATH / PATH_INFO break as CGI.
3 years ago
Solderpunk
36378eb1c6
Make sure CGI files are world-readable as well as world-executable.
3 years ago
Solderpunk
4ae154faed
Convert CGIPath handling from regexs to prefixes.
3 years ago
Solderpunk
b30fc0923b
Handle CGI requests with URI components after the script.
3 years ago
Solderpunk
68398ef0be
Extensive refactor, trying to keep the main request handling function relatively simple.
3 years ago
Solderpunk
990b7071d0
gofmt fixes.
3 years ago
Solderpunk
77691d6983
Introduce error log.
3 years ago
Solderpunk
a0dacf4bbd
Basic implementation of certificate zones - only one authorised cert per zone.
3 years ago
Solderpunk
15863eb253
Fix typo in CGI environment variable.
3 years ago
Solderpunk
b0b18971f4
Run gofmt on everything for the first time ever!
3 years ago
Solderpunk
2c99228610
Pass pointers to the log entry to functions which can set the status code, so changes are reflected in the main handle function.
3 years ago
Solderpunk
b0a08f8231
Break CGI and SCGI stuff out into its own file.
3 years ago