Skip to content

Commit

Permalink
fix myurls
Browse files Browse the repository at this point in the history
  • Loading branch information
stilleshan committed May 2, 2024
1 parent 96d00b6 commit 59cb325
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion myurls/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
15 changes: 4 additions & 11 deletions myurls/domain.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion myurls/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 59cb325

Please sign in to comment.