# include snippets/snakeoil.conf;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name yourdomain.com www.domain.com;
location / {
proxy_pass http://68.183.5.130:5984; #whatever port your app runs on
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
#pass PHP scripts to FastCGI server
#
#location ~ \.php$ {
# include snippets/fastcgi-php.conf;
1条答案
按热度按时间ncecgwcz1#
1-创建液滴。2-docker-compose.yml for CouchDB.
-docker-compose up
3-将域名与Cloudflare链接并创建SSL。4-将液滴与域连接。5-使用Nginx来反转域中水滴的IP。6-安装NGINX(不是droplet本身的容器)并配置。sudo apt install nginx 8-and Change nginx config file. 7-sudo nano /etc/nginx/sites-available/default
最后,您的连接将是:(
https://username: [[email protected]](https://stackoverflow.com/cdn-cgi/l/email-protection) /yourDB
)