Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
img-manager
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Lan
img-manager
Commits
8f1f35ee
Commit
8f1f35ee
authored
Mar 11, 2025
by
Ivan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: try to deploy
parent
6f753f9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
deploy.yml
config/deploy.yml
+11
-8
production.rb
config/environments/production.rb
+4
-4
No files found.
config/deploy.yml
View file @
8f1f35ee
...
@@ -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
:
web
secure
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
:
tru
e
ssl
:
fals
e
# 使用
域名而不是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指令配置
...
...
config/environments/production.rb
View file @
8f1f35ee
...
@@ -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
=
tru
e
config
.
assume_ssl
=
fals
e
#
Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
#
禁用强制SSL,方便调试
config
.
force_ssl
=
tru
e
config
.
force_ssl
=
fals
e
# 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"
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment