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
openapi: 3.0.0 | |
info: | |
title: MovieApp API | |
description: API para una aplicación de películas con autenticación basada en JWT y autorización mediante scopes, siguiendo principios de DDD. | |
version: 1.0.0 | |
servers: | |
- url: https://api.movieapp.com/v1 | |
description: Servidor de Producción | |
- url: http://localhost:8080/v1 | |
description: Servidor de Desarrollo Local |
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
AWSTemplateFormatVersion: "2010-09-09" | |
Description: AWS ECS Infrastructure setup using an existing VPC | |
Parameters: | |
VpcId: | |
Description: "The ID of the existing VPC" | |
Type: AWS::EC2::VPC::Id | |
PublicSubnet1Id: | |
Description: "The ID of the existing public subnet 1" |
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
require 'socket' | |
require 'fileutils' | |
require 'json' | |
require 'logger' | |
require 'time' | |
PORT = 80 | |
UPLOADS_DIR = '/mnt/nfs/uploads' | |
PUBLIC_DIR = '/public' | |
MAX_BODY_SIZE = 10 * 1024 * 1024 # 10 MB |
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
# Builder stage | |
FROM eclipse-temurin:21-jdk-jammy as builder | |
WORKDIR /opt/app | |
# Copy only the necessary files to download dependencies first and leverage caching | |
COPY gradlew build.gradle settings.gradle ./ | |
COPY gradle ./gradle | |
RUN ./gradlew dependencies --no-daemon || return 0 | |
# Copy the rest of the source files and build the project |
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
// src/main/java/com/edu/uba/projects/config/AppConfig.java | |
package com.edu.uba.projects.config; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.security.config.Customizer; | |
import org.springframework.security.config.annotation.web.builders.HttpSecurity; | |
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; | |
import org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer; | |
import org.springframework.security.web.SecurityFilterChain; |
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
import os | |
import sys | |
import logging | |
import subprocess | |
import codecs | |
# Configure logging | |
logging.basicConfig(level=logging.INFO, format='%(message)s') | |
logger = logging.getLogger() |
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
import { CognitoIdentityProviderClient, GetIdCommand, GetCredentialsForIdentityCommand } from '@aws-sdk/client-cognito-identity'; | |
import { S3Client } from '@aws-sdk/client-s3'; | |
// Configuration | |
const REGION = 'us-east-1'; | |
const userPoolId = import.meta.env.VITE_USER_POOL_ID; | |
const identityPoolId = import.meta.env.VITE_IDENTITY_POOL_ID; | |
// Initialize S3Client without specific credentials | |
export const s3Client = new S3Client({ region: REGION }); |
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
asyncapi: 2.4.0 | |
info: | |
title: Account Service | |
version: 1.0.0 | |
description: This service is in charge of processing user signups | |
channels: | |
user-signedup: | |
description: A user has signed up for our service | |
publish: | |
message: |
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
import pika | |
from bottle import run, Bottle | |
EXCHANGE_NAME = "domain" | |
QUEUE_NAME = "domain" | |
ROUTING_EX_KEY = "domain-key" | |
def main(): | |
rabbitmq_uri_app = "amqp://user:[email protected]:5672/target-vhost" |
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
#.github/workflows/deploy.yaml | |
name: CD Stage | |
on: | |
push: | |
branches: | |
- QA | |
- '!master' | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 |
NewerOlder