-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
130 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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,2 +1,4 @@ | ||
** | ||
!test | ||
!proxy/nginx.conf | ||
!install.sh |
This file contains 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 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,2 @@ | ||
** | ||
!nginx.conf |
This file contains 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,42 @@ | ||
# | ||
# MetaCall Install Script by Parra Studios | ||
# Cross-platform set of scripts to install MetaCall infrastructure. | ||
# | ||
# Copyright (C) 2016 - 2024 Vicente Eduardo Ferrer Garcia <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
FROM nginx:alpine-slim AS proxy | ||
|
||
# Image descriptor | ||
LABEL copyright.name="Vicente Eduardo Ferrer Garcia" \ | ||
copyright.address="[email protected]" \ | ||
maintainer.name="Vicente Eduardo Ferrer Garcia" \ | ||
maintainer.address="[email protected]" \ | ||
vendor="MetaCall Inc." \ | ||
version="0.1" | ||
|
||
COPY install.sh /usr/share/nginx/html/ | ||
COPY proxy/nginx.conf /etc/nginx/ | ||
|
||
RUN apk add openssl \ | ||
&& openssl req -x509 -nodes -days 365 -subj "/C=CA/ST=QC/O=Company, Inc./CN=raw.githubusercontent.com" \ | ||
-addext "subjectAltName=DNS:raw.githubusercontent.com" -newkey rsa:2048 \ | ||
-keyout /etc/ssl/private/nginx-selfsigned.key \ | ||
-out /etc/ssl/certs/nginx-selfsigned.crt | ||
|
||
USER root | ||
|
||
EXPOSE 80 | ||
EXPOSE 443 |
This file contains 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,32 @@ | ||
user root; | ||
worker_processes 1; | ||
error_log /var/log/nginx/error.log notice; | ||
pid /var/run/nginx.pid; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
sendfile on; | ||
keepalive_timeout 65; | ||
|
||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name raw.githubusercontent.com; | ||
|
||
listen 443 ssl; | ||
listen [::]:443 ssl; | ||
ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt; | ||
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key; | ||
|
||
location /metacall/install/master/install.sh { | ||
alias /usr/share/nginx/html/install.sh; | ||
types { | ||
application/x-sh sh; | ||
} | ||
default_type application/x-sh; | ||
} | ||
} | ||
} |
This file contains 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