Commit 665953e2 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Configura servicio y despliegue del mismo

parent 10336596
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+18 −0
Original line number Diff line number Diff line
include:
  - project: 'redmic-project/gitlab-ci-templates'
    ref: master
    file: '/deployment.yml'

stages:
  - deploy

variables:
  DD_IMAGE_NAME: nginx
  DD_IMAGE_TAG: alpine
  STACK: gateway

.deploy:
  variables:
    SERVICES_TO_CHECK: ${STACK}_${CI_PROJECT_NAME}
  environment:
    url: http://${PUBLIC_HOSTNAME}

deploy/.env

0 → 100644
+0 −0

Empty file added.

+45 −0
Original line number Diff line number Diff line
user nginx;
worker_processes auto;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;

events {
	worker_connections 1024;
	multi_accept on;
}

http {
	include /etc/nginx/mime.types;
	default_type application/octet-stream;

	log_format main
		'$remote_addr - $remote_user [$time_local] "$request" '
		'$status $body_bytes_sent "$http_referer" '
		'"$http_user_agent" "$http_x_forwarded_for"';

	access_log /var/log/nginx/access.log main;

	server {
		listen [::]:80 ipv6only=on;
		listen 80 default_server;

		charset utf-8;

		location ~ /\.well-known/acme-challenge/ {
			allow all;
			root /var/www/letsencrypt;
			try_files $uri =404;
		}

		location ~ /.* {
			return 301 https://$host$request_uri;
		}

		location = /favicon.ico {
			access_log off;
			log_not_found off;
			return 204;
		}
	}
}
+1 −0
Original line number Diff line number Diff line
version: '3.5'
+1 −0
Original line number Diff line number Diff line
version: '3.5'
Loading