Merge pull request #12 from lake54/update-nginx-cors
Update nginx to 1.7.5 and always send CORS header
This commit is contained in:
commit
c97f751353
@ -26,16 +26,16 @@ RUN apt-get update && \
|
||||
|
||||
# get nginx source
|
||||
WORKDIR /src
|
||||
RUN wget http://nginx.org/download/nginx-1.6.2.tar.gz && \
|
||||
tar zxf nginx-1.6.2.tar.gz && \
|
||||
rm nginx-1.6.2.tar.gz && \
|
||||
RUN wget http://nginx.org/download/nginx-1.7.5tar.gz && \
|
||||
tar zxf nginx-1.7.5.tar.gz && \
|
||||
rm nginx-1.7.5.tar.gz && \
|
||||
# get nginx-rtmp module
|
||||
wget https://github.com/arut/nginx-rtmp-module/archive/v1.1.6.tar.gz && \
|
||||
tar zxf v1.1.6.tar.gz && \
|
||||
rm v1.1.6.tar.gz
|
||||
|
||||
# compile nginx
|
||||
WORKDIR /src/nginx-1.6.2
|
||||
WORKDIR /src/nginx-1.7.5
|
||||
RUN ./configure --add-module=/src/nginx-rtmp-module-1.1.6 \
|
||||
--conf-path=/config/nginx.conf \
|
||||
--error-log-path=/logs/error.log \
|
||||
|
@ -48,7 +48,7 @@ http {
|
||||
}
|
||||
root /data;
|
||||
add_header Cache-Control no-cache;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
add_header Access-Control-Allow-Origin * always;
|
||||
}
|
||||
|
||||
location /stat {
|
||||
|
Loading…
Reference in New Issue
Block a user