rohmanahmad/oas3
#OAS3
OAS3 (Open API Spesification v3)
preview: https://app.swaggerhub.com/apis-docs/rohmanahmad/accounts/1.0.0
json example: https://petstore.swagger.io/v2/swagger.json
information
files:
#! /bin/sh
set -e
BASE_URL=${BASE_URL:-/}
NGINX_ROOT=/usr/share/nginx/html
INDEX_FILE=$NGINX_ROOT/index.html
node /usr/share/nginx/configurator $INDEX_FILE
exec nginx -g 'daemon off;'
<h2>work fine</h2>
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_static on;
gzip_disable "msie6";
gzip_vary on;
gzip_types text/plain text/css application/javascript;
map $request_method $access_control_max_age {
OPTIONS 1728000; # 20 days
}
server {
listen 8080;
server_name localhost;
index index.html index.htm;
location ~ ^/wedus/(accounts|office)$ {
alias /usr/share/nginx/html/;
try_files $uri $uri/ /index.html;
expires 1d;
location ~* \.(?:json|yml|yaml)$ {
expires -1;
include cors.conf;
}
include cors.conf;
}
location / {
root /usr/share/nginx/html/;
index main.html;
expires 1d;
location ~* \.(?:json|yml|yaml)$ {
expires -1;
include cors.conf;
}
include cors.conf;
}
}
}
environments:
volumes:
features:
running image:
docker pull rohmanahmad/oas3