V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  ODD10  ›  全部回复第 44 页 / 共 53 页
回复总数  1057
1 ... 36  37  38  39  40  41  42  43  44  45 ... 53  
2019-05-17 17:27:42 +08:00
回复了 morethansean 创建的主题 PWA 我有一个开发了快两年的 PWA V2EX App 和大家分享……
@Lin0936 #103
我是自己的 VPS 呃
Firebase Hosting 我第一次接触,不清楚
2019-05-17 17:22:43 +08:00
回复了 morethansean 创建的主题 PWA 我有一个开发了快两年的 PWA V2EX App 和大家分享……
@morethansean #100

老哥,我配置了泛域名,新增的 server 配置的域名 v2er.xxxx.top 访问 get-v2ex,还是走第一个 server,怎么处理?
前端小白,只懂一点 nginx,求教,谢谢。

upstream wx {
# ip_hash;
# server 127.0.0.1:3006;
server 127.0.0.1:8080;
}


server {
listen 80;
server_name *.xxxx.top xxxx.top;

# gzip config
gzip on;
gzip_min_length 1k;
gzip_comp_level 9;
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";

location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Nginx-Proxy true;
# try_files $uri $uri/ /index.html;
proxy_pass http://wx;
proxy_redirect off;
}

listen 443 ssl;
ssl_certificate /home/ubuntu/ssl/fullchain.cer;
ssl_certificate_key /home/ubuntu/ssl/xxxx.top.key;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

}

server {
listen 80;
server_name v2er.xxxx.top;

index static/index.html;

# gzip config
gzip on;
gzip_min_length 1k;
gzip_comp_level 9;
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";

# configure serverAddress in your config.js as 'https://[your_domain.com]/api'
location ~ ^/api/(.*) {
rewrite ^/api/(.*) /$1 break;
proxy_pass http://127.0.0.1:3003;
}
# treat other requests as static resources
location ~ ^/(.*) {
rewrite ^/(.*) /static/$1 break;
proxy_pass http://127.0.0.1:3003;
}
}
2019-05-17 17:17:24 +08:00
回复了 morethansean 创建的主题 PWA 我有一个开发了快两年的 PWA V2EX App 和大家分享……
Member 页面见上图,也是不对的,undfined???
2019-05-17 17:15:15 +08:00
回复了 morethansean 创建的主题 PWA 我有一个开发了快两年的 PWA V2EX App 和大家分享……
@Lin0936 #97
nginx 鸭,文档里面写了鸭,复制就行鸭,傻瓜式的鸭
2019-05-17 17:14:25 +08:00
回复了 morethansean 创建的主题 PWA 我有一个开发了快两年的 PWA V2EX App 和大家分享……
手机上字体图标加载不出来。开了 ss 也没用。
2019-05-17 17:07:33 +08:00
回复了 morethansean 创建的主题 PWA 我有一个开发了快两年的 PWA V2EX App 和大家分享……
2019-05-17 17:04:53 +08:00
回复了 morethansean 创建的主题 PWA 我有一个开发了快两年的 PWA V2EX App 和大家分享……
@morethansean #93
好了,我开始没 config.js 就 init 了!
重新 init 一次,再启动程序,正常了
2019-05-17 16:50:21 +08:00
回复了 morethansean 创建的主题 PWA 我有一个开发了快两年的 PWA V2EX App 和大家分享……
能访问,就是一直提示未登录,获取不到数据;话说配置了用户名&密码,用户验证码你是怎么处理的。
我尝试访问登陆页面,验证码图片是 500,获取不到惹。
2019-05-17 16:46:39 +08:00
回复了 morethansean 创建的主题 PWA 我有一个开发了快两年的 PWA V2EX App 和大家分享……
对方不想说话,并向你抛出一个错误:

```

(node:661) ExperimentalWarning: The fs.promises API is experimental
task runner established!
get-v2ex is listening on port 3003!
Get task { taskId: 'fetch-notifications',
interval: 600000,
next: 1558082619038,
start: 1558082619038,
runner: '127.0.0.1' }
(node:661) UnhandledPromiseRejectionWarning: Error: User does not sign in
at Object.exports.get (/home/ubuntu/get-v2ex/lib/userrequest.js:39:39)
at taskQueue.onRun (/home/ubuntu/get-v2ex/tasks/index.js:28:60)
at (anonymous function).forEach.func (/home/ubuntu/get-v2ex/lib/taskrunner/index.js:258:11)
at Array.forEach (<anonymous>)
at TaskQueue.executeTask (/home/ubuntu/get-v2ex/lib/taskrunner/index.js:257:30)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
(node:661) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:661) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

```
哈哈,有意思
2019-05-16 20:50:47 +08:00
回复了 stark123 创建的主题 问与答 求推荐冲牙器
淘宝一个接水龙头的冲牙器才几十元。
如果压力不够,效果嘛?压力大了,基本牙龈有点问题的地方都会出血。

经常刷牙+偶尔漱口水+偶尔牙线+偶尔冲牙。
2019-05-16 20:34:02 +08:00
回复了 gtexpanse 创建的主题 健身 腹部脂肪堆积怎么办
楼上几位说跑步的是认真的嘛?
天天跑,腿不废了?
跑步跑多久才燃脂?成效不高吧。
@stream #98 我不是人,那你也不是
@Tokin 没说 HR !只是说东莞互联网行业现状。
2019-05-14 11:42:43 +08:00
回复了 angry41 创建的主题 健康 小孩子咳嗽老不好怎么办
- 忌口,少油少煎炸,清淡不重口味。
- 运动。
- 注意休息。
@Tokin #93
工资你也能接受?
@anthoy #77
握爪,我也在松山湖
- 东莞说是一线城市,但是工资 emmm
- 东莞工资压的厉害也就算了,花样还这么多,要理由怎么会没有。
- 愚者善辩,大家心里跟明镜似的。
1 ... 36  37  38  39  40  41  42  43  44  45 ... 53  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3337 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 38ms · UTC 11:20 · PVG 19:20 · LAX 04:20 · JFK 07:20
Developed with CodeLauncher
♥ Do have faith in what you're doing.