Skip to content

Instantly share code, notes, and snippets.

View default
server {
listen 80;
server_name my-example.io;
location ~ ^/(auth|login|logout|static) {
proxy_pass http://vouch;
proxy_set_header Host $http_host;
}
location /validate {
View nginx.conf
ser ubuntu;
worker_processes 1;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 1024;
# multi_accept on;
}
http {
View gist:e91ef8528eb96d8e552f1741a281c27a
# Vouch Proxy configuration
# bare minimum to get Vouch Proxy running with OpenID Connect (such as okta)
vouch:
logLevel: debug
# domains:
# valid domains that the jwt cookies can be set into
# the callback_urls will be to these domains
#domains:
@OksanaH
OksanaH / CdkPipelinesPipelineStack.cs
Last active May 27, 2021
CdkPipelinesPipelineStack.cs
View CdkPipelinesPipelineStack.cs
SynthAction = new SimpleSynthAction(new SimpleSynthActionProps
{
SourceArtifact = artifact,
CloudAssemblyArtifact = cloudAssemblyArtifact,
InstallCommands = new[]{"npm install -g aws-cdk",
"wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb",
"dpkg -i packages-microsoft-prod.deb", "apt-get update", "apt-get install -y apt-transport-https", "apt-get update",
"apt-get install -y dotnet-sdk-3.1"},
@OksanaH
OksanaH / CdkPipelinesPipelineStack.cs
Last active May 23, 2021
CdkPipelinesPipelineStack.cs
View CdkPipelinesPipelineStack.cs
var deploy = new AppPipelineStage(this, "Deploy", new Amazon.CDK.StageProps
{
Env = new Amazon.CDK.Environment
{
Account = "XXXXXXXXXXXX",
Region = "eu-west-1"
}
});
var stage = pipeline.AddApplicationStage(deploy);
View AppPipelineStage.cs
using Amazon.CDK;
using Amazon.CDK.Pipelines;
namespace CdkPipelines
{
public class AppPipelineStage : Stage
{
public AppPipelineStage(Construct scope, string id, StageProps props = null)
: base(scope, id, props)
{
@OksanaH
OksanaH / CdkPipelinesPipelineStack.cs
Last active May 23, 2021
CdkPipelinesPipelineStack.cs
View CdkPipelinesPipelineStack.cs
SynthAction = new SimpleSynthAction(new SimpleSynthActionProps
{
SourceArtifact = artifact,
CloudAssemblyArtifact = cloudAssemblyArtifact, // Where to place built source
InstallCommands = new[]{
"npm install -g aws-cdk",
"wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb",
"dpkg -i packages-microsoft-prod.deb", "apt-get update", "apt-get install -y apt-transport-https", "apt-get update",
"apt-get install -y dotnet-sdk-3.1"
@OksanaH
OksanaH / CdkPipelinesAppStack.cs
Last active May 23, 2021
CdkPipelinesAppStack.cs
View CdkPipelinesAppStack.cs
using Amazon.CDK;
using System.IO;
using Amazon.CDK.AWS.EC2;
using Amazon.CDK.AWS.ECS;
using Amazon.CDK.AWS.ECS.Patterns;
namespace CdkPipelines
{
public class WhatDayOfWeekStack : Stack
{
View gist:cb59bfd79f90ff374955433316056fea
{
"Effect": "Allow",
"Action": "codestar-connections:UseConnection",
"Resource": "connectionArn"
}
@OksanaH
OksanaH / CdkPipelinesStack.cs
Created Mar 13, 2021
CodePipelineServiceRolePolicy
View CdkPipelinesStack.cs
var policyProps = new PolicyStatementProps()
{
Actions = new string[] { "codestar-connections:UseConnection" },
Effect = Effect.ALLOW,
Resources = new string[] { connectionArn }
};
pipeline.CodePipeline.AddToRolePolicy(new PolicyStatement(policyProps));