This file contains hidden or 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 { Controller, Get } from '@nestjs/common'; | |
import { AppService } from './app.service'; | |
import { SqsMessageProducer } from './sqs-producer/sqs-message-producer.service'; | |
@Controller() | |
export class AppController { | |
constructor( | |
private readonly appService: AppService, | |
private readonly sqsProducer: SqsMessageProducer, | |
) {} |
This file contains hidden or 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 { createClient } from 'redis'; | |
let REDIS_CLIENT = null; | |
export const getConnection = async(url) => { | |
if(!!REDIS_CLIENT) return REDIS_CLIENT; | |
try { | |
const client = createClient(url); | |
client.on('error', (err) => {throw err}); |
This file contains hidden or 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
server { | |
# The internal IP of the VM that hosts your Apache config | |
set $upstream 0.0.0.0:6000 ; | |
location / { | |
proxy_pass_header Authorization; | |
proxy_pass http://$upstream; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_http_version 1.1; |
This file contains hidden or 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
[Unit] | |
# Describe the metadata of the service | |
Description="Apache Superset" | |
After=network.target | |
# Service specifies the user and group under which our process will run. | |
#Replace with your username |
This file contains hidden or 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
Hello |