我实际上正在开发一个 web 应用程序,我Reactjs用于前端和Golang后端。这两个程序分别托管在Google-Compute-Engine. 我想为我的应用程序提供服务,https所以我选择Nginx用于在生产中为前端提供服务。首先,我为以下内容制作了配置文件Nginx:
#version: nginx/1.14.0 (ubuntu)
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/banshee;
server_name XX.XXX.XX.XXX; #public IP of my frontend VM
index index.html;
location / {
try_files $uri /index.html =404;
}
}
Run Code Online (Sandbox Code Playgroud)
对于这部分,一切都按预期工作,但在那之后,我想https按照本教程为我的应用程序提供服务。我安装的软件包software-properties-common,python-certbot-apache
以及certbot但是当我试图
sudo cerbot --nginx certonly
我收到以下消息:
gdes@frontend:/etc/nginx$ sudo certbot --nginx certonly
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Could not choose appropriate plugin: The …Run Code Online (Sandbox Code Playgroud) 我开始了 Knowthen Go/React 教程,但我在使用 React 时遇到了一些问题。当我尝试启动我的应用程序时,出现此错误,但我不明白为什么。这是我的 github 存储库,其中包含我的所有来源:https ://github.com/LaLauque/RealTImePlatform/tree/dev
多谢