deploy: a47590fe23
This commit is contained in:
1
upage/assets/js/221e29db.d52ad40d.js
Normal file
1
upage/assets/js/221e29db.d52ad40d.js
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkupage_docs=self.webpackChunkupage_docs||[]).push([[940],{3679:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>d,default:()=>p,frontMatter:()=>a,metadata:()=>r,toc:()=>c});const r=JSON.parse('{"id":"deployment/others","title":"\u5176\u4ed6\u914d\u7f6e","description":"\u672c\u6587\u6863\u63d0\u4f9b\u4e86\u90e8\u7f72 UPage \u65f6\u7684\u4e00\u4e9b\u5176\u4ed6\u914d\u7f6e\u9009\u9879\u548c\u6700\u4f73\u5b9e\u8df5\u3002","source":"@site/content/deployment/others.md","sourceDirName":"deployment","slug":"/deployment/others","permalink":"/upage/deployment/others","draft":false,"unlisted":false,"editUrl":"https://github.com/halo-dev/upage/edit/main/docs/content/content/deployment/others.md","tags":[],"version":"current","frontMatter":{"id":"others","title":"\u5176\u4ed6\u914d\u7f6e"},"sidebar":"tutorialSidebar","previous":{"title":"Logto \u8ba4\u8bc1\u96c6\u6210","permalink":"/upage/deployment/logto"},"next":{"title":"\u914d\u7f6e\u53c2\u8003","permalink":"/upage/configuration"}}');var o=t(6106),s=t(8784);const a={id:"others",title:"\u5176\u4ed6\u914d\u7f6e"},d="\u5176\u4ed6\u914d\u7f6e",i={},c=[{value:"\u4f7f\u7528 Nginx \u53cd\u5411\u4ee3\u7406",id:"\u4f7f\u7528-nginx-\u53cd\u5411\u4ee3\u7406",level:2},{value:"\u914d\u7f6e HTTPS",id:"\u914d\u7f6e-https",level:2},{value:"\u6570\u636e\u5907\u4efd",id:"\u6570\u636e\u5907\u4efd",level:2}];function l(e){const n={code:"code",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"\u5176\u4ed6\u914d\u7f6e",children:"\u5176\u4ed6\u914d\u7f6e"})}),"\n",(0,o.jsx)(n.p,{children:"\u672c\u6587\u6863\u63d0\u4f9b\u4e86\u90e8\u7f72 UPage \u65f6\u7684\u4e00\u4e9b\u5176\u4ed6\u914d\u7f6e\u9009\u9879\u548c\u6700\u4f73\u5b9e\u8df5\u3002"}),"\n",(0,o.jsx)(n.h2,{id:"\u4f7f\u7528-nginx-\u53cd\u5411\u4ee3\u7406",children:"\u4f7f\u7528 Nginx \u53cd\u5411\u4ee3\u7406"}),"\n",(0,o.jsx)(n.p,{children:"\u5982\u679c\u60a8\u9700\u8981\u4f7f\u7528 Nginx \u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406\uff0c\u53ef\u4ee5\u53c2\u8003\u4ee5\u4e0b\u914d\u7f6e\uff1a"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-nginx",children:"server {\n listen 80;\n server_name your-domain.com;\n\n location / {\n proxy_pass http://localhost:3000;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Forwarded-Proto $scheme;\n }\n}\n"})}),"\n",(0,o.jsx)(n.h2,{id:"\u914d\u7f6e-https",children:"\u914d\u7f6e HTTPS"}),"\n",(0,o.jsx)(n.p,{children:"\u5efa\u8bae\u4f7f\u7528 Nginx \u6216\u5176\u4ed6\u53cd\u5411\u4ee3\u7406\u6765\u5904\u7406 HTTPS \u8bf7\u6c42\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528 Let's Encrypt \u83b7\u53d6\u514d\u8d39\u7684 SSL \u8bc1\u4e66\u3002"}),"\n",(0,o.jsx)(n.h2,{id:"\u6570\u636e\u5907\u4efd",children:"\u6570\u636e\u5907\u4efd"}),"\n",(0,o.jsxs)(n.p,{children:["UPage \u7684\u6570\u636e\u5b58\u50a8\u5728\u6302\u8f7d\u7684 ",(0,o.jsx)(n.code,{children:"data"})," \u76ee\u5f55\u4e2d\uff0c\u60a8\u53ef\u4ee5\u5b9a\u671f\u5907\u4efd\u8be5\u76ee\u5f55\u6765\u4fdd\u62a4\u60a8\u7684\u6570\u636e\uff1a"]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:"# \u5907\u4efd\u6570\u636e\u76ee\u5f55\ntar -czf upage-data-backup-$(date +%Y%m%d).tar.gz ./upage/data\n"})})]})}function p(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8784:(e,n,t)=>{t.d(n,{R:()=>a,x:()=>d});var r=t(7378);const o={},s=r.createContext(o);function a(e){const n=r.useContext(s);return r.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]);
|
||||
Reference in New Issue
Block a user