55 Commits

Author SHA1 Message Date
Chris Rienzo
9e0f30c58b FS-8560 [mod_http_cache] add new parameter, connect-timeout
This is the maximum time to wait, in seconds, for the HTTP GET or PUT to connect.
If this value is not set or is set to 0, the default setting of 300 seconds is used.
2015-11-19 17:10:15 -05:00
Chris Rienzo
df6a5315c1 FS-8549 [mod_http_cache] add support for AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables in S3 profiles 2015-11-17 12:00:15 -05:00
Chris Rienzo
d8d3db284c FS-7496 [mod_http_cache] lookup file extension from content-type if missing in URL 2015-04-30 16:06:19 -04:00
Brian West
d29c2d74b6 FS-7496 #resolve strip url args after the file extension 2015-04-30 14:29:21 -04:00
Chris Rienzo
3cd481820e FS-7323 #resolve #comment [mod_http_cache] added http_remove_cache <url> API call to manually expire a cached URL.
Added {refresh=true} parameter that can be prefixed to URL to force refresh when using http:// https:// file formats or the http_get API.
Examples:
    http_remove_cache http://phono.com/audio/troporocks.mp3
    http_get {refresh=true}http://phono.com/audio/troporocks.mp3
    <action application="playback" data="{refresh=true}http://phono.com/audio/troporocks.mp3"/>
2015-02-25 09:43:38 -05:00
Chris Rienzo
dd61232163 FS-6979 #resolve #comment mod_http_cache: added base-domain config to s3 profiles so mod_http_cache can access self hosted s3 compatible service.
Example configuration:

  <profiles>
    <profile name="s3">
       <!-- Credentials for AWS account. -->
       <aws-s3>
          <!-- 20 character key identifier -->
          <access-key-id><![CDATA[AKIAIOSFODNN7EXAMPLE]]></access-key-id>
          <!-- 40 character secret -->
          <secret-access-key><![CDATA[wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY]]></secret-access-key>
          <base-domain><![CDATA[example.com]]></base-domain>
       </aws-s3>
       <!-- Domains that this profile applies to -->
       <domains>
          <domain name="bucket.example.com"/>
          <domain name="bucket2.example.com"/>
       </domains>
    </profile>
  </profiles>
2014-11-13 10:20:02 -05:00
Chris Rienzo
b60df39b96 mod_http_cache: fix configuration so that carriage returns or other whitespace is OK around S3 keys 2014-08-12 16:28:42 -04:00
Chris Rienzo
3b45ef90ae mod_http_cache: fixed S3 URL parser to allow mybucketsubdomain.com.s3.amazonaws.com 2014-08-12 16:07:56 -04:00
Chris Rienzo
c36e63026c mod_http_cache: CID 1025858: Thread deadlock (ORDER_REVERSAL) 2014-04-30 10:08:00 -04:00
Travis Cross
1470622292 Require libcurl as a system dependency
This purges libcurl from our tree and requires it to be present on the
system for building and running FreeSWITCH.

FS-353
2014-03-20 21:15:29 +00:00
Travis Cross
c993962d0b Update some modules to use CPPFLAGS
These modules use curl and we'll be adding in some bits to the
CPPFLAGS.
2014-03-20 21:09:46 +00:00
Chris Rienzo
cf04dd3e75 FS-6326 --resolve switch_core_hash_init_nocase changed and mod_http_cache wasn't updated 2014-03-09 11:31:00 -04:00
Anthony Minessale
804ef7709d change from sqlite hash to newly added one 2014-03-09 00:37:17 +05:00
Michael Jerris
bcd9f49fbe move applications to use automake 2014-03-07 18:36:12 -05:00
Chris Rienzo
8ca287e97b FS-6218 --resolve 2014-02-13 09:18:41 -05:00
Chris Rienzo
259337ca57 mod_http_cache: fixed validation of S3 URL 2014-02-10 08:54:43 -05:00
Chris Rienzo
77501db844 mod_http_cache: support amazon s3 region URLs 2014-01-10 10:06:06 -05:00
Chris Rienzo
ae7371e7c5 mod_http_cache: allow underscore in amazon s3 hostname 2014-01-03 16:21:48 -05:00
Chris Rienzo
9b4e967248 mod_http_cache: use case-insensitive domain to profile hash 2013-09-03 10:05:13 -04:00
Chris Rienzo
dd6b8a828a mod_http_cache: added <domain> to <profile> configuration 2013-08-30 23:41:31 -04:00
Nathan Neulinger
32adc789f6 make noexpandtab explicit in all vim modelines other than xml files 2013-06-25 11:50:17 -05:00
Chris Rienzo
cac8536170 mod_http_cache: valgrind fixes 2013-06-24 22:19:54 -04:00
Chris Rienzo
98ae1c93fa mod_http_cache: fixed wrong string to sign when referencing AWS S3 object with subdirectory 2013-06-12 09:38:35 -04:00
Chris Rienzo
2c82e6afc6 mod_http_cache: fix example config 2013-05-22 13:22:03 -04:00
Chris Rienzo
f7e725f4bf mod_http_cache: a couple more unit test cases 2013-05-22 08:47:49 -04:00
Chris Rienzo
f5f65b65a9 mod_http_cache: remove unnecessary memset() now that switch_b64_encode() is fixed 2013-05-22 08:22:04 -04:00
Chris Rienzo
8be02b57ce mod_http_cache: fix unit test now that switch_b64_encode is fixed 2013-05-22 08:19:36 -04:00
Chris Rienzo
83d7b60d74 mod_http_cache: forgot to add write to http_cache:// format 2013-05-21 09:27:39 -04:00
Chris Rienzo
a0170bbdb2 mod_http_cache: added write file format 2013-05-20 11:18:40 -04:00
Chris Rienzo
8c8b2176d2 mod_http_cache: added native Amazon S3 support 2013-05-20 09:31:28 -04:00
Chris Rienzo
7af706113a FS-5221 --resolve set NOSIGNAL on http_get 2013-03-26 23:50:29 -04:00
Chris Rienzo
a8cb98c7f9 mod_http_cache: added http_cache file format that won't conflict with mod_httapi. 2013-03-19 08:59:39 -04:00
Chris Rienzo
f45fa08e15 mod_http_cache: add support for http/https formats if enable-file-formats is set to true in http_cache.conf. Don't load mod_httapi if you use this option 2013-03-18 17:58:51 -04:00
Christopher Rienzo
ac3e6ba140 Forgot to allow https on http_tryget 2012-07-17 14:29:36 +00:00
Stefan Knoblich
fa03e4e0ca mod_http_cache: Remove DOS line-endings in http_put().
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-15 00:43:00 +02:00
Stefan Knoblich
addcddc1ae mod_http_cache: Fix last remaining C99-style for loop.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-15 00:37:35 +02:00
Stefan Knoblich
445b74b765 mod_http_cache: Do not use C99-style for loops to fix non-debug builds.
Debug builds add -std=c99 (or -xc99 for suncc) to CFLAGS
(AX_CFLAGS_WARN_ALL_ANSI configure macro).

Non-debug builds do not invoke AX_CFLAGS_WARN_ALL_ANSI checks and
therefore won't have C99 support enabled, which breaks the build of
mod_http_cache due to "for (int i... )"-style C99 loops.

NOTE: AC_PROG_CC_C99 would make a lot of sense here and MSVC (2005)
accepts "for (int ...)" constructs too.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-14 12:43:36 +02:00
dschreiber
d6c482e40f Added support for Content-Type and other optional headers when doing an HTTP PUT 2012-06-19 21:25:00 -07:00
Christopher Rienzo
187fe4e14e update name/e-mail address 2012-06-11 13:05:29 +00:00
Christopher Rienzo
be2ec29282 Add Maintainer to mod_posix_timer, mod_unimrcp, mod_http_cache 2012-05-31 13:24:24 +00:00
Christopher Rienzo
4178393a73 fix bug with max-age 2012-04-25 01:30:47 +00:00
Christopher Rienzo
d79982e72c added SSL support to mod_http_cache 2012-04-25 00:18:56 +00:00
Ken Rice
c5554eb939 Copyright date update. 2012-04-18 11:52:02 -05:00
Ken Rice
cac6c262bb conf: add config files to module directories
The idea here is that the config files in the module directories will
serve as the canonical documentation of all module configuration
options.
2012-03-24 04:51:08 +00:00
Christopher Rienzo
7788f3e9c4 remove unused variable in mod_http_cache 2012-01-26 18:01:52 +00:00
Christopher Rienzo
b55a6b158f add prefetch API to mod_http_cache 2012-01-25 15:07:59 +00:00
Anthony Minessale
e794a6db21 FS-2936 stage 2 please test ASAP 2011-11-29 15:35:36 -06:00
Anthony Minessale
e58ed35d17 FS-2936 stage 1 2011-11-29 11:13:11 -06:00
Christopher Rienzo
12a1ac9432 fix mod_http_cache crash reported by hunmonk and mstockton 2011-11-28 19:22:09 +00:00
Michal Bielicki - cypromis
7b0d878925 typo 2011-10-10 12:15:30 +02:00