Skip to content
Snippets Groups Projects
Commit fb04ec35 authored by Sebastian Karius's avatar Sebastian Karius
Browse files

add nginx-cors

parent 0a877b2a
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
...@@ -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
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';
......
...@@ -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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment