Skip to content

Instantly share code, notes, and snippets.

@vinicius73
vinicius73 / nginx.conf
Last active August 26, 2022 23:51
Example of Nginx Front and API
upstream api {
server 127.0.0.1:3000 max_fails=0;
}
server {
listen 80;
listen [::]:80;
server_name dominio-aqui;
@ntamvl
ntamvl / example-use-aws-sdk-mock-to-test-aws-ssm.md
Last active February 17, 2023 15:56
Example: use aws-sdk-mock to test AWS SSM

Use aws-sdk-mock to test AWS SSM

Example:

const AWSMock = require("aws-sdk-mock");
import AWS = require("aws-sdk");
AWSMock.setSDKInstance(AWS);

import "mocha";