copy configs to right palces to nginx -t orking

This commit is contained in:
skeris 2024-09-24 15:38:53 +03:00
parent 75f68b3e04
commit 806f73f4cd
2 changed files with 14 additions and 14 deletions

@ -7,7 +7,6 @@ include:
file: "/templates/docker/deploy-template.gitlab-ci.yml" file: "/templates/docker/deploy-template.gitlab-ci.yml"
stages: stages:
- clean - clean
# - check
- build - build
- deploy - deploy
clear-old-images: clear-old-images:
@ -30,10 +29,11 @@ clear-old-images:
# - frontbuild # - frontbuild
# image: # image:
# name: penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/nginx # name: penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/nginx
# before_script:
# - cp /builds/frontend/nginx-proxy/nginx.conf /etc/nginx/nginx.conf
# - cp /builds/frontend/nginx-proxy/default.conf /etc/nginx/conf.d/default.conf
# script: # script:
# - pwd # - nginx -t
# - ls
# - nginx -t -c /builds/frontend/nginx-proxy/default.conf
# stage: check # stage: check
build-app: build-app:

@ -40,7 +40,7 @@ server {
location /auth// { location /auth/ {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Credentials true always;
@ -120,7 +120,7 @@ server {
location /strator// { location /strator/ {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Credentials true always;
@ -204,7 +204,7 @@ server {
location /treasurer// { location /treasurer/ {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Credentials true always;
@ -232,7 +232,7 @@ server {
location /price// { location /price/ {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Credentials true always;
@ -260,7 +260,7 @@ server {
location /feedback// { location /feedback/ {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Credentials true always;
@ -288,7 +288,7 @@ server {
location /requestquiz// { location /requestquiz/ {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Credentials true always;
@ -349,7 +349,7 @@ server {
location /pena-social-auth-service// { location /pena-social-auth-service/ {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Credentials true always;
@ -384,7 +384,7 @@ server {
location /cbrfworker-service-staging// { location /cbrfworker-service-staging/ {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Credentials true always;
@ -412,7 +412,7 @@ server {
location /squiz-amocrm// { location /squiz-amocrm/ {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Credentials true always;
@ -522,7 +522,7 @@ server {
location /squiz// { location /squiz/ {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Credentials true always;