Skip to content

Commit

Permalink
community: Upgrade discourse to v3.3.4 with pg15 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed Feb 6, 2025
1 parent 24b4995 commit 5509e71
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cookbooks/community/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
action :sync
repository "https://github.com/discourse/discourse_docker.git"
# DANGER launch wrapper automatically updates git repo if rebuild method used: https://github.com/discourse/discourse_docker/blob/107ffb40fe8b1ea40e00814468db974a4f3f8e8f/launcher#L799
revision "136c63890674b95df1327d24270c55e4ef8e87a8"
revision "efd6bc8ccbd9057c04d909ff48ecf8b704cae3ff"
user "root"
group "root"
notifies :run, "notify_group[discourse_container_new_data]"
Expand Down
4 changes: 2 additions & 2 deletions cookbooks/community/templates/default/data.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#

templates:
- "templates/postgres.13.template.yml" # NOTE UPDATE THE HOOK REPLACE FOR MAX CONNECTIONS BELOW
- "templates/postgres.15.template.yml" # NOTE UPDATE THE HOOK REPLACE FOR MAX CONNECTIONS BELOW
- "templates/redis.template.yml"

# any extra arguments for Docker?
Expand Down Expand Up @@ -51,6 +51,6 @@ hooks:
run:
# Make sure this matches the postgresql version template above
- replace:
filename: "/etc/postgresql/13/main/postgresql.conf"
filename: "/etc/postgresql/15/main/postgresql.conf"
from: /#?max_connections *=.*/
to: "max_connections = $db_max_connections"
3 changes: 1 addition & 2 deletions cookbooks/community/templates/default/web_only.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ links:
# any extra arguments for Docker?
# docker_args:

# Latest Version v3.3.3
# Latest Version v3.3.4
# Discourse only support tests-passed and stable branches
params:
version: stable
Expand Down Expand Up @@ -121,7 +121,6 @@ hooks:
from: /listen 80;/
to: |
listen 80;
listen [::]:80;
rewrite ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 permanent;

- replace:
Expand Down

0 comments on commit 5509e71

Please sign in to comment.