Skip to content

Commit

Permalink
Update fastcgi_pass to use localhost instead of the container name
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Jan 29, 2024
1 parent 222f0da commit f66d5e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ reponame="mattermost-nginx"
nginx_alpine="nginx:1.25.3-alpine3.18"
container=$(buildah from docker.io/${nginx_alpine})
buildah add "${container}" oauth /var/www/html/oauth
buildah add "${container}" oauth.conf /etc/nginx/conf.d/oauth.conf
buildah add "${container}" oauth.conf /etc/nginx/conf.d/default.conf

# Commit the image
buildah commit "${container}" "${repobase}/${reponame}"
Expand Down
2 changes: 1 addition & 1 deletion oauth.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ server {

location ~ /oauth/.*\.php$ {
try_files $uri =404;
fastcgi_pass php:9000;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
Expand Down

0 comments on commit f66d5e7

Please sign in to comment.