Skip to content

Commit

Permalink
ci: nginx conf error
Browse files Browse the repository at this point in the history
  • Loading branch information
fearlessfe committed Sep 22, 2024
1 parent 8dd8f10 commit 9394f26
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ FROM nginx
COPY --from=builder /app/out /usr/share/nginx/html
RUN apt-get update && apt-get install -y jq && apt-get clean
COPY ./nginx.conf.example /etc/nginx/nginx.conf
COPY ./start.sh /start.sh
COPY ./start.sh /start.sh
RUN chmod +x /start.sh
CMD ["/bin/bash", "/start.sh"]
15 changes: 12 additions & 3 deletions nginx.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ http {
server {
listen 80;
location / {
root html;
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}

location /index/ {
location ^~ /index/ {
proxy_pass http://meiliSearch:7700/;
proxy_set_header Host $host;
proxy_set_header X-Forward-For $remote_addr;
Expand All @@ -31,7 +31,16 @@ http {
proxy_set_header Connection "upgrade";
proxy_set_header Authorization "Bearer TOKEN";
}
location ~ /api/ {
location ^~ /api/ {
proxy_pass http://node1:8080/;
proxy_set_header Host $host;
proxy_set_header X-Forward-For $remote_addr;
proxy_set_header X-Forward-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location ^~ /docs/ {
proxy_pass http://node1:8080/;
proxy_set_header Host $host;
proxy_set_header X-Forward-For $remote_addr;
Expand Down

0 comments on commit 9394f26

Please sign in to comment.