📕
blog
  • Hi there
  • javascript
    • 柯里化 - Curry
    • 观察者和订阅-发布模式
    • generator
    • 发布订阅-依赖于window
    • pwa manual trigger install
  • browser
    • beautify scrollbar
  • http
    • nginx 缓存配置
  • extra
    • vue-cli 不使用 .env[.xxx] 文件,添加额外运行时参数
    • docker-compose nginx with ssl config
  • React
    • How React works
Powered by GitBook
On this page

Was this helpful?

  1. extra

docker-compose nginx with ssl config

version: "3"

services:
  entrypoint:
    restart: always
    image: nginx:latest
    ports:
      - 443:443
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
      - ./default.conf:/etc/nginx/conf.d/default.conf:ro
      - ./cert.key:/etc/nginx/cert.key:ro
      - ./cert.pem:/etc/nginx/cert.pem:ro
server {
    listen       443 ssl;
    server_name  default;
    ssl_certificate     cert.pem;
    ssl_certificate_key cert.key;
}
Previousvue-cli 不使用 .env[.xxx] 文件,添加额外运行时参数NextHow React works

Last updated 4 years ago

Was this helpful?