Commit 8f1f35ee by Ivan

fix: try to deploy

parent 6f753f9e
...@@ -12,10 +12,10 @@ servers: ...@@ -12,10 +12,10 @@ servers:
labels: labels:
# 使用域名隔离应用 # 使用域名隔离应用
traefik.http.routers.img_manager.rule: Host(`img-manager.mumumumushu.com`) traefik.http.routers.img_manager.rule: Host(`img-manager.mumumumushu.com`)
# 指定路由器名称,避免与其他应用冲突 # 指定路由器名称,使用web入口点(端口80)
traefik.http.routers.img_manager.entrypoints: websecure traefik.http.routers.img_manager.entrypoints: web
# 启用TLS # 不启用TLS,简化配置
traefik.http.routers.img_manager.tls: true # traefik.http.routers.img_manager.tls: true
# 使用自定义端口而不是默认的80 # 使用自定义端口而不是默认的80
traefik.http.services.img_manager.loadbalancer.server.port: 3000 traefik.http.services.img_manager.loadbalancer.server.port: 3000
# job: # job:
...@@ -26,10 +26,10 @@ servers: ...@@ -26,10 +26,10 @@ servers:
# Enable SSL auto certification via Let's Encrypt and allow for multiple apps on a single web server. # Enable SSL auto certification via Let's Encrypt and allow for multiple apps on a single web server.
# Note: If using Cloudflare, set encryption mode in SSL/TLS setting to "Full" to enable CF-to-app encryption. # Note: If using Cloudflare, set encryption mode in SSL/TLS setting to "Full" to enable CF-to-app encryption.
proxy: proxy:
# 启用SSL自动证书 # 暂时禁用SSL,简化部署
ssl: true ssl: false
# 使用域名而不是IP地址 # 使用IP地址而不是域名,方便直接访问
host: img-manager.mumumumushu.com host: 45.78.59.154
# 配置Traefik使用自定义端口 # 配置Traefik使用自定义端口
# options: # options:
# # 定义多个入口点,包括非80端口 # # 定义多个入口点,包括非80端口
...@@ -138,6 +138,9 @@ drain_timeout: 60 ...@@ -138,6 +138,9 @@ drain_timeout: 60
# 增加容器启动后的就绪延迟 # 增加容器启动后的就绪延迟
readiness_delay: 30 readiness_delay: 30
# 禁用健康检查,直接部署应用
bootstrap_healthcheck: false
# Kamal使用Docker的健康检查,不需要额外配置 # Kamal使用Docker的健康检查,不需要额外配置
# 健康检查已在Dockerfile中通过HEALTHCHECK指令配置 # 健康检查已在Dockerfile中通过HEALTHCHECK指令配置
......
...@@ -24,11 +24,11 @@ Rails.application.configure do ...@@ -24,11 +24,11 @@ Rails.application.configure do
# Store uploaded files on the local file system (see config/storage.yml for options). # Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :local config.active_storage.service = :local
# Assume all access to the app is happening through a SSL-terminating reverse proxy. # 暂时禁用SSL设置,简化部署
config.assume_ssl = true config.assume_ssl = false
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # 禁用强制SSL,方便调试
config.force_ssl = true config.force_ssl = false
# Skip http-to-https redirect for health check endpoints. # Skip http-to-https redirect for health check endpoints.
config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" || request.path == "/health_check" || request.path == "/session/new" } } } config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" || request.path == "/health_check" || request.path == "/session/new" } } }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment