Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
containerize
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package registry
Container Registry
Operate
Terraform modules
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Studio R215
containerize
Commits
fb04ec35
Commit
fb04ec35
authored
5 months ago
by
Sebastian Karius
Browse files
Options
Downloads
Patches
Plain Diff
add nginx-cors
parent
0a877b2a
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
docker-compose.yml
+2
-2
2 additions, 2 deletions
docker-compose.yml
docker/nginx-cors/nginx.conf.template
+7
-0
7 additions, 0 deletions
docker/nginx-cors/nginx.conf.template
helm/nginx-cors/Chart.yaml
+2
-2
2 additions, 2 deletions
helm/nginx-cors/Chart.yaml
with
13 additions
and
6 deletions
.gitlab-ci.yml
+
2
−
2
View file @
fb04ec35
...
@@ -45,7 +45,7 @@ helm-package:
...
@@ -45,7 +45,7 @@ helm-package:
-
vdo-ninja-0.1.2.tgz
-
vdo-ninja-0.1.2.tgz
-
ti-coder-0.2.6.tgz
-
ti-coder-0.2.6.tgz
-
ti-lamp-0.1.2.tgz
-
ti-lamp-0.1.2.tgz
-
nginx-cors-0.1.
2
.tgz
-
nginx-cors-0.1.
3
.tgz
expire_in
:
1 hour
expire_in
:
1 hour
helm-publish
:
helm-publish
:
...
@@ -62,7 +62,7 @@ helm-publish:
...
@@ -62,7 +62,7 @@ helm-publish:
-
'
curl
--request
POST
--user
gitlab-ci-token:$CI_JOB_TOKEN
--form
"chart=@vdo-ninja-0.1.2.tgz"
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"'
-
'
curl
--request
POST
--user
gitlab-ci-token:$CI_JOB_TOKEN
--form
"chart=@vdo-ninja-0.1.2.tgz"
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"'
-
'
curl
--request
POST
--user
gitlab-ci-token:$CI_JOB_TOKEN
--form
"chart=@ti-coder-0.2.6.tgz"
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"'
-
'
curl
--request
POST
--user
gitlab-ci-token:$CI_JOB_TOKEN
--form
"chart=@ti-coder-0.2.6.tgz"
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"'
-
'
curl
--request
POST
--user
gitlab-ci-token:$CI_JOB_TOKEN
--form
"chart=@ti-lamp-0.1.2.tgz"
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"'
-
'
curl
--request
POST
--user
gitlab-ci-token:$CI_JOB_TOKEN
--form
"chart=@ti-lamp-0.1.2.tgz"
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"'
-
'
curl
--request
POST
--user
gitlab-ci-token:$CI_JOB_TOKEN
--form
"chart=@nginx-cors-0.1.
2
.tgz"
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"'
-
'
curl
--request
POST
--user
gitlab-ci-token:$CI_JOB_TOKEN
--form
"chart=@nginx-cors-0.1.
3
.tgz"
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"'
stages
:
stages
:
-
build
-
build
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
2
−
2
View file @
fb04ec35
...
@@ -40,9 +40,9 @@ services:
...
@@ -40,9 +40,9 @@ services:
-
${CI_REGISTRY}/studio-r215/containerize/php-fpm:83
-
${CI_REGISTRY}/studio-r215/containerize/php-fpm:83
nginx-cors
:
nginx-cors
:
image
:
${CI_REGISTRY}/studio-r215/containerize/nginx-cors:1.0.
2
image
:
${CI_REGISTRY}/studio-r215/containerize/nginx-cors:1.0.
3
build
:
build
:
dockerfile
:
Dockerfile
dockerfile
:
Dockerfile
context
:
./docker/nginx-cors
context
:
./docker/nginx-cors
cache_from
:
cache_from
:
-
${CI_REGISTRY}/studio-r215/containerize/nginx-cors:1.0.2
-
${CI_REGISTRY}/studio-r215/containerize/nginx-cors:1.0.3
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker/nginx-cors/nginx.conf.template
+
7
−
0
View file @
fb04ec35
server {
server {
listen 80;
listen 80;
location /playground {
add_header Content-Security-Policy "default-src 'self'; connect-src 'self';";
add_header Content-Type text/html;
return 200 '
<html><head><title>
Playground
</title></head><body>
Playground
</body></html>
';
}
location / {
location / {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Headers' 'Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
add_header 'Access-Control-Allow-Headers' 'Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
...
...
This diff is collapsed.
Click to expand it.
helm/nginx-cors/Chart.yaml
+
2
−
2
View file @
fb04ec35
...
@@ -15,10 +15,10 @@ type: application
...
@@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version
:
0.1.
2
version
:
0.1.
3
# This is the version number of the application being deployed. This version number should be
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
# It is recommended to use it with quotes.
appVersion
:
"
1.0.
2
"
appVersion
:
"
1.0.
3
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment