diff --git a/myurls/docker-compose.yml b/myurls/docker-compose.yml index 24ad5a945..db58bf6f3 100644 --- a/myurls/docker-compose.yml +++ b/myurls/docker-compose.yml @@ -5,7 +5,7 @@ services: # container_name: myurls environment: - MYURLS_DOMAIN=s.ops.ci - - MYURLS_TTL=365 + - MYURLS_PROTO=https volumes: - ./data/myurls/logs:/app/logs ports: diff --git a/myurls/domain.conf b/myurls/domain.conf index 482c156a0..54f88ffa6 100644 --- a/myurls/domain.conf +++ b/myurls/domain.conf @@ -26,19 +26,13 @@ server { resolver 8.8.8.8 8.8.4.4 valid=60s ipv6=off; resolver_timeout 5s; add_header Strict-Transport-Security "max-age=63072000" always; -//fixed error code 502 for long request url - fastcgi_buffers 16 16k; - fastcgi_buffer_size 32k; - proxy_buffer_size 128k; - proxy_buffers 4 256k; - proxy_busy_buffers_size 256k; - -location / { + + location / { proxy_redirect off; proxy_pass http://127.0.0.1:8002; add_header 'Access-Control-Allow-Origin' '*'; - + proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Ssl on; @@ -48,8 +42,7 @@ location / { client_max_body_size 100m; client_body_buffer_size 128k; - -} + } access_log /home/wwwlogs/s.ops.ci.access.log main; error_log /home/wwwlogs/s.ops.ci.error.log warn; diff --git a/myurls/start.sh b/myurls/start.sh index 1fd82d61a..c842483b3 100755 --- a/myurls/start.sh +++ b/myurls/start.sh @@ -2,4 +2,4 @@ sed -i "s#https://s.ops.ci#https://${MYURLS_DOMAIN}#g" /app/public/index.html -/app/myurls -domain ${MYURLS_DOMAIN} -conn redis:6379 -ttl ${MYURLS_TTL} +/app/myurls -domain ${MYURLS_DOMAIN} -conn redis:6379