Nginx串联前后端的部署

2021年4月27日 06:31 by wst

服务部署

铺垫

之前文件已经描述了怎么用docker部署django和vue:

1. Docker部署django

2. Docker部署Vue

串联

为了在同一域名下部署前后端,这里在nginx上做了串联:

注:前端暴露的端口为17401,后端暴露的端口为17411

upstream business-front{
    server 178.20.112.172:17401;
    fair;
}

upstream business-backend{
    server 178.20.112.172:17411;
    fair;
}

server {
    listen 80;
    server_name admin.xxx.com.cn;
    access_log /data/logs/admin.xxx.com.cn.access.log;
    error_log /data/logs/admin.xxx.com.cn.error.log;
    root /data/business_management_system;

    location / {
      proxy_redirect off;
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_pass http://business-front/;
    }

    location /api/ {
      proxy_redirect off;
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_pass http://business-backend/;
    }

}

 


Comments(127) Add Your Comment

Charlesnag
“I haven’t seen you in these parts,” the barkeep said, sidling during to where I sat. “Repute’s Bao.” He stated it exuberantly, as if word of his exploits were shared aside settlers about many a verve in Aeternum. He waved to a unanimated butt beside us, and I returned his token with a nod. He filled a telescope and slid it to me across the stained red wood of the bar prior to continuing. “As a betting houseman, I’d be willing to wager a fair speck of coin you’re in Ebonscale Reach for the purpose more than the wet one's whistle and sights,” he said, eyes glancing from the sword sheathed on my hip to the bow slung across my back. http://maps.google.com.gt/url?q=https://renewworld.ru/sistemnye-trebovaniya-new-world/
Kevingaw
http://images.google.co.th/url?q=http://pinup-fashion.de/wp-content/pages/welche_online_casinos_sind_in_deutschland_legal_.html https://www.stadt-berga.de/wp-includes/pgs/?welches_casino_zahlt_am_schnellsten_aus____top_5_online_casinos_mit_guter_rendite_2022.html http://images.google.cm/url?q=http://lehrcare.de/pages/pgs/die_besten_casinos_von_las_vegas_in_downtown__fremont_street_.html https://schlossgut.de/news/welche_online_casinos_sind_in_deutschland_legal__1.html http://images.google.bg/url?q=http://miss-mole.de/wp-content/pages/online_kasinos_in_polen.html
Kevingaw
https://www.simacek.com/present/inc/wie_man_ein_casino_online_schl_gt__clevere_tipps_f_r_anf_nger_und_erfahrene_spieler.html http://www.google.as/url?q=http://1xbitpromocode.org/ https://images.google.sr/url?q=https://nething.com/wp-includes/pages/?wie_man_an_casino_spielautomaten_gewinnt_und_spielautomaten_richtig_spielt__schemata_und_strategien.html https://www.stadt-berga.de/wp-includes/pgs/?welches_casino_zahlt_am_schnellsten_aus____top_5_online_casinos_mit_guter_rendite_2022.html http://www.google.co.ma/url?q=https://1xbitapk.com/pl/
BruceCep
Many thanks. ------- виртуальный номер испании <a href="https://continent-telecom.com/virtual-number-spain">continent telecom</a>
Qjgctc
atorvastatin 40mg without prescription <a href="https://lipiws.top/">atorvastatin 40mg uk</a> buy atorvastatin 40mg pill
Inpqqu
ciprofloxacin medication - <a href="https://cipropro.top/gemyambutol/">buy myambutol 1000mg pills</a> clavulanate usa
Gdiomk
how to buy baycip - <a href="https://metroagyl.top/azithromycin/">augmentin medication</a> buy clavulanate without prescription
Oveege
metronidazole online order - <a href="https://metroagyl.top/oxytetracycline/">order generic terramycin 250mg</a> generic zithromax
Yyljov
buy ciplox 500 mg without prescription - <a href="https:/septrim.top/">ciprofloxacin us</a> erythromycin 250mg price
Twiaod
valtrex sale - <a href="https://gnantiviralp.com/zovirax/">generic zovirax</a> buy zovirax 400mg sale
Ysaymg
stromectol tablets for humans - <a href="https://keflexin.top/ceftin/">ceftin 500mg pills</a> order tetracycline pills
Nuhkih
metronidazole 200mg generic - <a href="https://metroagyl.top/cefaclor/">cefaclor 500mg usa</a> azithromycin sale
Kycjfh
ampicillin medication <a href="https://ampiacil.top/">buy ampicillin cheap</a> amoxil for sale
Stxnxs
order furosemide 40mg without prescription - <a href="https://antipathogenc.com/">furosemide 40mg ca</a> capoten generic
Bfvprv
glycomet 1000mg for sale - <a href="https://gnantiacidity.com/baycip/">baycip order online</a> order lincomycin 500mg online cheap
Flypbq
buy generic zidovudine - <a href="https://canadiangnp.com/avapro/">avapro buy online</a> oral allopurinol
Uhypxy
clozapine 50mg ca - <a href="https://genonlinep.com/amaryl/">amaryl for sale online</a> buy generic famotidine over the counter
Hbinfi
quetiapine online order - <a href="https://gnkantdepres.com/bupron/">how to buy bupropion</a> purchase eskalith
Pdnmds
anafranil brand - <a href="https://antdeponline.com/sinequan/">how to get sinequan without a prescription</a> pill sinequan
Bwytbc
brand atarax - <a href="https://antdepls.com/">order generic atarax 10mg</a> buy endep 10mg without prescription
Nukjch
augmentin 625mg price - <a href="https://atbioinfo.com/ethambutol/">buy ethambutol 600mg generic</a> buy cipro 1000mg
Nxqvfe
amoxil over the counter - <a href="https://atbioxotc.com/trimox/">order amoxicillin 250mg generic</a> how to buy baycip
Mzjmxj
cleocin online - <a href="https://cadbiot.com/chloramphenicol/">brand chloromycetin</a> chloramphenicol ca
Cxplwm
buy zithromax 500mg pills - <a href="https://gncatbp.com/btetracycline/">order generic tetracycline</a> buy cheap generic ciprofloxacin
Wchjov
ivermectin for humans walmart - <a href="https://antibpl.com/aqdapsone/">purchase aczone online cheap</a> buy generic cefaclor 250mg
Dotfai
cost ventolin 4mg - <a href="https://antxallergic.com/advairdiskus/">cost fluticasone</a> generic theophylline
Aoutap
desloratadine 5mg cheap - <a href="https://rxtallerg.com/flixotidespray/">flixotide oral</a> order albuterol 4mg pill
Oemyjv
depo-medrol sale - <a href="https://ntallegpl.com/getcetirizine/">purchase cetirizine generic</a> order astelin online cheap
Pjmwlz
purchase glyburide online cheap - <a href="https://prodeprpl.com/">cheap micronase</a> order forxiga 10mg pills
Aaywko
order generic prandin 2mg - <a href="https://depressinfo.com/jardiance25/">order jardiance sale</a> purchase empagliflozin generic
Gsbvgs
order glucophage 500mg online - <a href="https://arxdepress.com/acarbose50/">precose 25mg cheap</a> precose 50mg cheap
Ndikgx
lamisil 250mg brand - <a href="https://treatfungusx.com/xgrifulvinvs/">buy grifulvin v generic</a> buy grifulvin v generic
Lqmmde
buy rybelsus 14 mg online cheap - <a href="https://infodeppl.com/">semaglutide where to buy</a> buy desmopressin cheap
Hwnask
buy cheap generic ketoconazole - <a href="https://antifungusrp.com/itraconazole100/">buy sporanox 100mg sale</a> order generic sporanox
Ajbmmz
famvir 250mg uk - <a href="https://amvinherpes.com/">purchase famciclovir generic</a> valaciclovir price
Binsur
buy lanoxin tablets - <a href="https://blpressureok.com/isoptinpillmg/">buy calan cheap</a> buy lasix pills for sale
Lxejgx
buy microzide - <a href="https://norvapril.com/bisoprolol/">bisoprolol 10mg cheap</a> zebeta price
Jbqddf
generic metoprolol 50mg - <a href="https://bloodpresspl.com/telmisartan/">telmisartan 20mg us</a> order adalat 30mg pill
Tqstma
purchase nitroglycerin for sale - <a href="https://nitroproxl.com/indapamide/">buy generic indapamide</a> diovan canada
Ksavdv
rosuvastatin expedition - <a href="https://antcholesterol.com/">crestor pills theory</a> caduet strain
Dqoamg
zocor drop - <a href="https://canescholest.com/gemfibrozil/">lopid fight</a> lipitor show
Xtblgx
viagra professional online wade - <a href="https://edsildps.com/superavana/">super avana report</a> levitra oral jelly unicorn
Ejrefs
priligy port - <a href="https://promedprili.com/">dapoxetine better</a> cialis with dapoxetine pack
Xxuxot
cenforce shrug - <a href="https://xcenforcem.com/cialistadalafil/">cheap cialis</a> brand viagra online pillow
Rtntgf
brand cialis flesh - <a href="https://probrandtad.com/penisole/">penisole abandon</a> penisole degree
Hfgkbg
cialis soft tabs port - <a href="https://supervalip.com/tadarisepills/">tadarise brilliant</a> viagra oral jelly online load
Ehrjtn
brand cialis permission - <a href="https://probrandtad.com/">brand cialis level</a> penisole type
Vqmgnm
cialis soft tabs pills justice - <a href="https://supervalip.com/cialisoraljelly/">cialis oral jelly pills outer</a> viagra oral jelly military
Rkbjmb
cenforce online afterward - <a href="https://xcenforcem.com/">cenforce online pride</a> brand viagra pills nearby
Dwyfvc
acne treatment medical - <a href="https://placnemedx.com/">acne treatment hood</a> acne medication tree
Ckixma
inhalers for asthma yeah - <a href="https://bsasthmaps.com/">asthma medication absence</a> asthma medication arrive
Eewtst
uti treatment mere - <a href="https://amenahealthp.com/">treatment for uti borrow</a> uti medication snow
Lssump
prostatitis pills treasure - <a href="https://xprosttreat.com/">pills for treat prostatitis phrase</a> prostatitis medications retreat
Bkqqms
valacyclovir online shall - <a href="https://gnantiviralp.com/">valacyclovir online trouble</a> valacyclovir online highest
Holreg
claritin pills frequent - <a href="https://clatadine.top/">claritin pills party</a> claritin pills mercy
Nasqqj
priligy frightful - <a href="https://prilixgn.top/">priligy lad</a> priligy painful
Iafyle
claritin pills cost - <a href="https://clatadine.top/">claritin okay</a> claritin doubtful
Omopin
ascorbic acid pass - <a href="https://ascxacid.com/">ascorbic acid peak</a> ascorbic acid possible
Bxqvbn
promethazine more - <a href="https://prohnrg.com/">promethazine truth</a> promethazine game
Ojyttm
biaxin underneath - <a href="https://gastropls.com/mesalaminepl/">asacol pills rush</a> cytotec prospect
Yxpvdh
fludrocortisone pills infinite - <a href="https://gastroplusp.com/omepprilosec/">omeprazole shelve</a> lansoprazole pills warm
Poexxs
rabeprazole 20mg tablet - <a href="https://gastrointesl.com/">buy generic aciphex</a> domperidone cheap
Dsbxdr
cost dulcolax 5 mg - <a href="https://gastroinfop.com/">brand bisacodyl</a> buy liv52 10mg pills
Hneyeo
buy cheap bactrim - <a href="https://ketiracet.com/">generic keppra</a> buy tobra 10mg drops
Atysnu
hydroquinone online order - <a href="https://cerazestrel.com/">order cerazette online cheap</a> order duphaston 10mg sale
Rocisk
forxiga 10mg drug - <a href="https://forpaglif.com/">forxiga 10 mg canada</a> acarbose 25mg uk
Qoboyg
buy dramamine 50 mg without prescription - <a href="https://actodronate.com/">actonel 35mg sale</a> actonel ca
Hoqjzj
order enalapril 10mg online cheap - <a href="https://doxapisin.com/">brand doxazosin</a> order xalatan
Fhlokj
buy etodolac 600 mg online - <a href="https://etodograph.com/">order monograph sale</a> buy generic pletal 100mg
Mfcmfk
buy feldene 20mg online - <a href="https://feldexicam.com/">piroxicam pills</a> exelon 3mg usa
Plepfp
buy nootropil sale - <a href="https://nootquin.com/sinemet/">buy sinemet pills for sale</a> buy sinemet generic
Xjukvj
buy hydrea paypal - <a href="https://hydroydrinfo.com/pentoxifylline/">buy trental tablets</a> buy generic methocarbamol over the counter
Pdszwz
depakote 500mg uk - <a href="https://adepamox.com/topiramate/">topiramate canada</a> buy topamax 200mg pill
Fijitx
cheap norpace pills - <a href="https://anorpica.com/lamivudine/">purchase epivir pills</a> pill thorazine 50 mg
Ezglsm
purchase cytoxan pill - <a href="https://cycloxalp.com/trimetazidine/">buy trimetazidine without prescription</a> purchase vastarel generic
Rctsri
buy spironolactone for sale - <a href="https://aldantinep.com/">aldactone 100mg uk</a> buy revia no prescription
Cporiu
flexeril order - <a href="https://abflequine.com/enalapril/">vasotec 5mg pill</a> brand enalapril
Vpispw
order generic zofran 4mg - <a href="https://azofarininfo.com/procyclidine/">kemadrin online</a> purchase requip online cheap
Lxtquj
ascorbic acid uk - <a href="https://mdacidinfo.com/isosorbidedinitrate/">buy isordil tablets</a> how to buy prochlorperazine
Iefajv
where can i purchase durex gel - <a href="https://xalaplinfo.com/">purchase cheap durex gel</a> buy zovirax eye drops for sale
Qziayc
minoxidil brand - <a href="https://hairlossmedinfo.com/finasteridefinp/">order finpecia pill</a> buy propecia without a prescription
Mmsmhf
buy generic leflunomide online - <a href="https://infohealthybones.com/risedronate/">risedronate 35mg usa</a> cartidin over the counter
Qxyewz
atenolol 50mg sale - <a href="https://heartmedinfox.com/sotalol/">purchase sotalol online cheap</a> purchase coreg online
Alvdig
buy verapamil 120mg pill - <a href="https://infoheartdisea.com/cardizem/">cost diltiazem 180mg</a> buy tenoretic no prescription
Vlegmg
atorlip tablets - <a href="https://infoxheartmed.com/enalapril/">enalapril 10mg for sale</a> buy bystolic 20mg generic
Ryzdtp
buy lasuna pills - <a href="https://infoherbalmz.com/diarex/">purchase diarex without prescription</a> buy himcolin pills for sale
Alxboq
order gasex for sale - <a href="https://herbalinfomez.com/diabecon/">diabecon canada</a> buy diabecon sale
Cmmjqs
purchase finax online cheap - <a href="https://finmenura.com/alfuzosin/">buy uroxatral 10 mg sale</a> buy alfuzosin 10mg for sale
Wibwvk
buy speman without a prescription - <a href="https://spmensht.com/finasteride/">purchase fincar generic</a> cheap fincar sale
Xguwsf
hytrin 5mg us - <a href="https://hymenmax.com/dapoxetine/">priligy us</a> buy generic priligy online
Ecutem
oxcarbazepine 600mg tablet - <a href="https://trileoxine.com/pirfenidone/">order pirfenidone pills</a> cheap levothroid without prescription
Mcpdsn
buy imusporin eye drops - <a href="https://asimusxate.com/">purchase imusporin generic</a> gloperba price
Nupkrd
buy duphalac no prescription - <a href="https://duphalinfo.com/betahistine/">buy betahistine cheap</a> buy betahistine 16 mg generic
Xyjjhk
order calcort online - <a href="https://lazacort.com/brimonidine/">buy alphagan without a prescription</a> order brimonidine without prescription
Pcfwdr
besivance over the counter - <a href="https://besifxcist.com/carbocysteine/">carbocisteine where to buy</a> sildamax over the counter
Xbvdlb
order neurontin 800mg online - <a href="https://aneutrin.com/">neurontin 100mg over the counter</a> cost sulfasalazine 500 mg
Haodfd
buy probenecid 500mg generic - <a href="https://bendoltol.com/carbamazepine/">order generic carbamazepine 200mg</a> buy tegretol 400mg sale
Qpvfep
buy generic colospa - <a href="https://coloxia.com/">purchase colospa generic</a> buy cilostazol pills
Ltfnfx
order celebrex 200mg - <a href="https://celespas.com/">order celecoxib 200mg without prescription</a> cheap indocin
Vnnwje
voltaren 100mg sale - <a href="https://dicloltarin.com/aspirin/">buy aspirin online</a> aspirin 75 mg cost
Bwtkjl
rumalaya medication - <a href="https://rumaxtol.com/amitriptyline/">endep medication</a> order amitriptyline without prescription
Omcbwi
mestinon tablet - <a href="https://mestonsx.com/azathioprine/">azathioprine 50mg without prescription</a> azathioprine 25mg pills
Kaxgjx
buy cheap generic diclofenac - <a href="https://vovetosa.com/animodipine/">nimotop order</a> buy nimodipine generic
Tbkolb
buy meloxicam - <a href="https://meloxiptan.com/rtrizatriptan/">order toradol 10mg generic</a> order toradol online cheap
Isonyw
cyproheptadine tablet - <a href="https://periheptadn.com/aszanaflex/">zanaflex price</a> tizanidine pill
Gsjmsf
trihexyphenidyl cost - <a href="https://voltapll.com.com/">cheap artane generic</a> emulgel where to purchase
Ezbfxt
oral accutane 20mg - <a href="https://aisotane.com/asdeltasone/">buy deltasone 40mg online</a> deltasone 10mg generic
Phgkzi
buy prednisone 5mg pills - <a href="https://apreplson.com/prednisolone/">buy omnacortil 40mg generic</a> buy generic elimite
Rvudwf
cheap acticin - <a href="https://actizacs.com/tretinoin/">purchase tretinoin generic</a> cheap retin cream
Iqtwsq
betnovate 20 gm us - <a href="https://betnoson.com/benoquincre/">monobenzone sale</a> buy benoquin cheap
Cpxivw
flagyl 200mg cost - <a href="https://ametronles.com/">buy metronidazole sale</a> buy cenforce 50mg pills
Traqys
where to buy augmentin without a prescription - <a href="https://alevonted.com/">cheap levoxyl generic</a> levothyroxine order
Kkhncu
how to get cleocin without a prescription - <a href="https://indometnp.com/">indomethacin price</a> buy indomethacin pill
Pxvxtt
buy generic cozaar - <a href="https://acephacrsa.com/">cost cephalexin 250mg</a> buy cephalexin
Nyugyl
brand crotamiton - <a href="https://aeuracream.com/abactroban/">bactroban ointment cost</a> aczone online order
Gcbkbm
buy bupropion 150mg without prescription - <a href="https://bupropsl.com/orlistat/">buy cheap generic xenical</a> buy generic shuddha guggulu online
Tdyfqw
oral provigil 100mg - <a href="https://sleepagil.com/">provigil usa</a> buy generic meloset 3 mg
Rwizfe
buy progesterone 100mg pills - <a href="https://apromid.com/">order prometrium 100mg for sale</a> cost fertomid
Pmxpns
capecitabine uk - <a href="https://xelocap.com/mefenamicacid/">ponstel price</a> danocrine cost
Ivyecg
order aygestin - <a href="https://norethgep.com/lumigan/">lumigan medication</a> yasmin over the counter
Zqdwlz
where to buy fosamax without a prescription - <a href="https://pilaxmax.com/medroxyprogesterone/">buy provera 5mg pill</a> buy generic provera for sale
Jydjdm
cabergoline us - <a href="https://adostilin.com/premarin/">purchase premarin generic</a> alesse canada
Fqhbqu
brand estradiol 2mg - <a href="https://festrolp.com/anastrozole/">buy anastrozole 1 mg for sale</a> order arimidex 1mg pills
Pehtsj
バイアグラ 値段 - <a href="https://jpedpharm.com/tadalafil/">タダラフィル 個人輸入 おすすめ</a> シアリスの購入
Rbomdc
プレドニン どこで買える - <a href="https://jpaonlinep.com/">プレドニン処方</a> アジスロマイシン錠 500mg 強さ
Agarit
プレドニン錠 20 mg 強さ - <a href="https://jpanfarap.com/jpadoxycycline/">ドキシサイクリン 値段</a> アキュテイン錠 20 mg 強さ
Mjdiob
eriacta statue - <a href="https://eriagra.com/szenegrag/">zenegra pills turn</a> forzest glass