小编G.D*_*G.D的帖子

在 nginx 中使用 certbot 的问题

我实际上正在开发一个 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-commonpython-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)

https nginx reactjs lets-encrypt certbot

26
推荐指数
3
解决办法
3万
查看次数

上述错误发生在<App>组件中:in App

我开始了 Knowthen Go/React 教程,但我在使用 React 时遇到了一些问题。当我尝试启动我的应用程序时,出现此错误,但我不明白为什么。这是我的 github 存储库,其中包含我的所有来源:https ://github.com/LaLauque/RealTImePlatform/tree/dev

多谢

javascript jsx npm reactjs react-proptypes

-1
推荐指数
1
解决办法
1万
查看次数

标签 统计

reactjs ×2

certbot ×1

https ×1

javascript ×1

jsx ×1

lets-encrypt ×1

nginx ×1

npm ×1

react-proptypes ×1