본문 바로가기

IT일반58

DNS 캐시 삭제 DNS 캐시를 삭제해주는 서비스 1.1.1.1 의 캐시 제거 도구를 사용하면 도메인 이름에 대한 DNS 캐시를 새로 고칠 수 있습니다. 도메인 이름에 대한 캐시를 새로 고치려면 아래에 도메인 이름을 입력하고 "DNS 레코드 유형" 을 선택한 다음 "캐시 제거"를 누르십시오 https://1.1.1.1/purge-cache/ 1.1.1.1 — The free app that makes your Internet faster. Use the Internet fast-lane WARP+ subscriptions extend WARP by sending all of your Internet traffic over Cloudflare's optimized Internet routes which make thousa.. 2022. 2. 16.
Firebase 다이나믹 링크 자동으로 생성기 (구글 스프레드시트 이용) Rest API를 이용하여 다이나믹 링크를 자동으로 생성하는 방법 1. 웹 API 키 Firebase Console에서 Web API Key를 가져옵니다. (그 전에 다이나믹 링크용 도메인 prefix설정을 먼저 해야 합니다) 2. Rest API ㅇAPI endpoint(URL) - https://firebasedynamiclinks.googleapis.com/v1/shortLinks?key=웹API키 ㅇ Header - Content-Type: application/json ㅇMethod - post Body { "dynamicLinkInfo": { "domainUriPrefix": "https://도메인프리픽스.page.link", "link": "여러분의URL?utm_source=sms&utm_m.. 2021. 12. 21.
AWS EC2 Linux 2에 nginx 프락시 서버 설정하기 SSL 까지 서버 설정 # Git 설치 sudo yum install git -y # NginX 설치 sudo amazon-linux-extras install nginx1 # Nginx 시작 sudo service nginx start # 참고 nginx 홈 # /usr/share/nginx/ nginx 도메인 설정 초기 설정= # nginx 설정파일 편집 sudo vi /etc/nginx/nginx.conf --> 아래내용 삽입 < -- server { listen 80; listen [::]:80; server_name {도메인}; root /usr/share/nginx/html; # hide server info server_tokens off; # Protect XSS Attack add_header X-X.. 2021. 12. 8.
맥북에서 sftp로 파일 업로드 쉘스크립트 #!/bin/bash filename="파일경로" hostname="서버주소" sftp -i ~/.ssh/id_rsa ubuntu@서버주소 2021. 12. 1.
Text Input 옆에 버튼 나란히 html show js new Vue({ el: "#app", vuetify: new Vuetify(), data: { input: '' }, methods: { show(){ alert(this.input) } } }) 2021. 4. 20.
Vuetify를 Firebase로 배포하기 설정 Vuetify + Firebase 디렉토리 생성 mkdir marketboro-via cd marketboro-via 상위로 이동 cd .. 뷰 프로젝트를 Firebase 프로젝트 명과 동일하게 vue create marketboro-via Overwrite [Vue 2] babel, router, vuex, eslint 선택 ESLint + Standard Vuetify 설치 cd marketboro-via/ 프로젝트 안으로 이동 vue add vuetify Choose a preset: ❯ Configure (advanced) ? Use a pre-made template? (will replace App.vue and HelloWorld.vue) Yes ? Use custom theme? No ? .. 2021. 4. 1.
워드프레스 WP Mailer SMTP 생성 방법 플러그인 설치 후 아래 과정 수행 구글 프로젝트 생성 https://console.developers.google.com/flows/enableapi?apiid=gmail&pli=1 외부일 경우 나중에 다운로드 2021. 2. 22.
워드프레스에서 SMTP 설정하기 워드프레스에서 관리자 이메일이 변경 대기중입니다. 로 나오고 안 올 때... 해당 테마의 functions.php 에 넣으면 된다. 예) /var/www/wp02.tera.co.kr/wp-content/themes/oceanwp/functions.php add_action( 'phpmailer_init', 'setup_phpmailer_init' ); function setup_phpmailer_init( $phpmailer ) { $phpmailer->Host = 'smtp.gmail.com'; $phpmailer->SMTPAuth = true; // Force it to use Username and Password to authenticate $phpmailer->Port = 465; $phpmai.. 2020. 11. 19.
우커머스 체크아웃(결제) 화면에서 청구지 주소 없애기 Woocommerce 체크아웃(결제) 화면에서 청구지 주소 없애기 해당 테마의 functions.php 에 넣으면 된다. 예) /var/www/wp02.tera.co.kr/wp-content/themes/oceanwp/functions.php function custom_override_checkout_fields( $fields ) { unset($fields['billing']['billing_company']); unset($fields['billing']['billing_address_1']); unset($fields['billing']['billing_address_2']); unset($fields['billing']['billing_city']); unset($fields['billing'.. 2020. 11. 19.
Github 웹훅(webhook) php 자동배포하기 목표: 소스코드 커밋할 때 커멘트에 [deployment]를 넣을 때만 자동 배포하기 > git commit -m '[deployment] 이 문자열이 있을 때만 배포한다' > git push 환경 구성 1. 먼저 SSH Key(Deploy Key)를 생성해야 합니다. SSH Key는 웹서버에서 생성하도록 합니다. > sudo mkdir /var/www/.ssh/ > sudo chown www-data:www-data /var/www/.ssh/ > sudo -Hu www-data ssh-keygen -t rsa > [default dir of /var/www/.ssh/ is fine, no password] > sudo cat /var/www/.ssh/id_rsa.pub 참고 URL: https://gi.. 2020. 8. 8.
아파치 가상호스트 서버 설정 SSL /usr/local/etc/httpd/extra httpd-vhosts.conf DocumentRoot "/Users/zauin/WebRoot/tera" ServerNametera.co.kr ServerAlias www.tera.co.kr ErrorLog "/usr/local/var/log/httpd/tera.co.kr-error_log" CustomLog "/usr/local/var/log/httpd/tera.co.kr-access_log" common RewriteEngine On RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L] DocumentRoot "/Users/zauin/WebRoot/tera" ServerName tera.co.kr ServerAli.. 2020. 5. 9.
그누보드 내용관리 에디터에서 section 태그가 지워질 때 html 태그 html_purifier 에서 태그를 제거합니다. 아래와 같이 해 보세요. /tera/lib/common.lib.php 의 파일에서 아래 부분을 찾아서 붉은색 부분을 추가해보세요. $config->set('URI.SafeIframeRegexp','%^(https?:)?//('.$safeiframe.')%'); $config->set('Attr.AllowedFrameTargets', array('_blank')); //유튜브, 비메오 전체화면 가능하게 하기 $config->set('Filter.Custom', array(new HTMLPurifier_Filter_Iframevideo())); $def = $config->getHTMLDefinition(true); $def->addElement('secti.. 2020. 3. 20.