-
Notifications
You must be signed in to change notification settings - Fork 110
[Metro AI Suite] IBVS: Add reverse proxy for IBVS docker deployment #764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 12 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
85d4c4e
Reverse proxy changes for ibvs
rohitkatakol 8960339
Create ibvs app with static web pages
rohitkatakol e4af35a
Fix rtsp stream
rohitkatakol 7fda14d
Helm changes for reverse proxy
rohitkatakol 218254a
Fix proxy requests for milvus ui
rohitkatakol 4d34cd6
Fix swagger documentaion for featurematching
rohitkatakol bf1fdec
RTSP stream enable with reverse proxy
rohitkatakol 9ce133c
Undo helm changes
rohitkatakol 8d427f9
Merge branch 'main' into feature/rkatakol/ibvs_reverse_proxy
rohitkatakol adcb029
Minor changes
rohitkatakol e57b306
Document changes
rohitkatakol faa512a
Merge branch 'main' into feature/rkatakol/ibvs_reverse_proxy
rohitkatakol 6768bfa
Merge branch 'main' into feature/rkatakol/ibvs_reverse_proxy
rohitkatakol b221402
Cleaning up compose.yml file
rohitkatakol a51eb00
Remove dockerfile for nginx
rohitkatakol 83f1944
Merge branch 'main' into feature/rkatakol/ibvs_reverse_proxy
rohitkatakol 6f61ef8
Changes to certificate generation script
rohitkatakol e1b58d7
Merge branch 'main' into feature/rkatakol/ibvs_reverse_proxy
rohitkatakol 76b9211
Added reverse proxy for helm chart
rohitkatakol 06a30a0
Merge branch 'main' into feature/rkatakol/ibvs_reverse_proxy
rohitkatakol 43f1b34
Minor changes
rohitkatakol f2071f0
Document changes for helm
rohitkatakol 65f051c
Document changes for nginx architecture
rohitkatakol f357a3e
Document changes for nginx architecture
rohitkatakol 7de2cc7
Merge branch 'main' into feature/rkatakol/ibvs_reverse_proxy
rohitkatakol 0e06bb7
Merge branch 'main' into feature/rkatakol/ibvs_reverse_proxy
rohitkatakol File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
metro-ai-suite/image-based-video-search/src/app/src/vite-env.d.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,7 @@ | ||
| /// <reference types="vite/client" /> | ||
|
|
||
| declare module '*.vue' { | ||
| import { DefineComponent } from 'vue'; | ||
| const component: DefineComponent<{}, {}, any>; | ||
| export default component; | ||
| } |
20 changes: 20 additions & 0 deletions
20
metro-ai-suite/image-based-video-search/src/nginx/Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| FROM nginx:1.27-alpine | ||
rohitkatakol marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # Install OpenSSL | ||
| RUN apk add --no-cache openssl bash | ||
|
|
||
| # Copy nginx config | ||
| COPY nginx.conf /etc/nginx/nginx.conf | ||
|
|
||
| # Copy cert generation script | ||
| COPY generate_certs.sh /usr/local/bin/generate_certs.sh | ||
| RUN chmod +x /usr/local/bin/generate_certs.sh | ||
|
|
||
| # Create SSL directory | ||
| RUN mkdir -p /etc/nginx/ssl | ||
|
|
||
| # Expose ports | ||
| EXPOSE 80 443 | ||
|
|
||
| # Run script (which starts nginx) | ||
| ENTRYPOINT ["/usr/local/bin/generate_certs.sh"] | ||
17 changes: 17 additions & 0 deletions
17
metro-ai-suite/image-based-video-search/src/nginx/generate_certs.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #!/bin/sh | ||
| set -e | ||
|
|
||
| SSL_DIR="/etc/nginx/ssl" | ||
|
|
||
| # Generate self-signed cert if not present | ||
| if [ ! -f "$SSL_DIR/server.crt" ] || [ ! -f "$SSL_DIR/server.key" ]; then | ||
| echo "🔐 Generating self-signed SSL certificate..." | ||
| openssl req -x509 -nodes -days 365 \ | ||
| -newkey rsa:2048 \ | ||
| -keyout "$SSL_DIR/server.key" \ | ||
| -out "$SSL_DIR/server.crt" \ | ||
| -subj "/C=IN/ST=KA/L=Bangalore/O=MyCompany/OU=Dev/CN=localhost" | ||
| fi | ||
|
|
||
| # Start nginx | ||
| nginx -g "daemon off;" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.