mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 00:50:30 +00:00
build proxy
This commit is contained in:
parent
20dfb44d78
commit
7990b0a2d1
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ COPY ./config/initproxy.conf /etc/
|
|||
COPY ./s6/w9init/setuser.sh /app/setuser.sh
|
||||
COPY ./s6/w9init/migration.sh /app/migration.sh
|
||||
COPY ./s6/w9init/setproxy.sh /app/setproxy.sh
|
||||
RUN chmod +x /app/setuser.sh /app/migration.sh
|
||||
RUN chmod +x /app/setuser.sh /app/migration.sh /app/setproxy.sh
|
||||
|
||||
RUN export add_ip_data="const ipDataFile={[CLOUDFRONT_URL]:'ip-ranges.json',[CLOUDFARE_V4_URL]:'ips-v4',[CLOUDFARE_V6_URL]:'ips-v6'}[url];logger.info(ipDataFile);if(ipDataFile){return fs.readFile(__dirname+'/../lib/ipData/'+ipDataFile,'utf8',(error,data)=>{if(error){logger.error('fetch '+ipDataFile+' error');reject(error);return}logger.info('fetch '+ipDataFile+' success');resolve(data)})}" && \
|
||||
sed -i "s#url);#&${add_ip_data}#g" /app/internal/ip_ranges.js && \
|
||||
|
|
Loading…
Reference in a new issue