분류 전체보기85 .gitignore가 작동하지 않을때 git rm -r --cached .git add .git commit -m "fixed untracked files" 2024. 6. 8. 프로젝트 생성시 패키지명 설정 myproject 라는 이름으로 프로젝트 생성 flutter create -—org com.domain myproject 2024. 6. 7. 배경 반투명 효과 배경 반투명 효과 ClipRRect( child: BackdropFilter( filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10), child: widget…. 2024. 6. 7. 스크롤시 앱바 자동숨기기 + 그리드 형태로 목록 출력하기 (2열) 스크롤시 앱바 자동숨기기 + 그리드 형태로 목록 출력하기 (2열)@override Widget build(BuildContext context) { return CustomScrollView( controller: ScrollController(), physics: const AlwaysScrollableScrollPhysics( parent: BouncingScrollPhysics(), ), slivers: [ SliverAppBar( toolbarHeight: 40, backgroundColor: Colors.purple.shade100, title: const Text('제목'), .. 2024. 6. 7. 프록시 통해서 전달되는 svg 파일도 gzip 압축하여 전송 설정 프록시 설정을 하면, 이를 통해서 전송되는 컨텐츠는 content-type 이 "application/octet-stream" 로 전송됨으로 인해 svg 파일이 압축되지 않고 전달된다. 이를 처리하기 위해서는 아래와 같이 설정한다. 1. /etc/nginx/nginx.conf 에 설정 추가http { ## # Basic Settings ## . . . ## # Gzip Settings ## gzip on; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_buffers 16 8k; gzip_http_version 1.1; gzip_types text/plain text/css application/j.. 2024. 6. 6. nginx 파일 업로드 최대 용량 제한 nginx 파일 업로드 최대 용량 제한 /etc/nginx/sites-available/default 파일 수정 server { . . . # 파일 업로드 최대 용량 제한 client_max_body_size 5m; . . . } 2024. 6. 6. nginx proxy 설정 /etc/nginx/sites-available/default 파일 수정server { . . . location ^~ /api { proxy_pass http://localhost:8080; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } location ^~ /service { proxy_pass http://localhost:8080; .. 2024. 6. 6. nginx gzip 설정 (웹사이트 컨텐츠 압축하여 전송) 웹서버에서 데이터 전송시 데이터를 압축해서 보내도록 하는 gzip 설정 부분이다. nginx 설정파일 을 열어 아래와 같이 설정한다. vi /etc/nginx/nginx.conf http 항목 http { ## # Basic Settings ## . . . ## # Gzip Settings ## gzip on; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_buffers 16 8k; gzip_http_version 1.1; gzip_types text/plain text/css application/json application/javascript text/xml application/xml.. 2024. 6. 6. ubuntu(22.04) + nginx + 무료ssl (let's Encrypt) 인증서 설치 ubuntu(22.04) + nginx + ssl (let's Encrypt) 인증서 설치 1. snap 설치 (certbot 설치 권장 )snap install core; snap refresh coreapt remove certbotsnap install --classic certbotln -s /snap/bin/certbot /usr/bin/certbot 2. 도메인별 인증서 설치certbot --nginx -d mydomain.com -d www.mydomain.com -d api.mydomain.com * 서브도메인 필요한만큼 추가위처럼 같은 도메인의 서브 도메인들은 명령 한번에 모두 모아서 한다. 만약 위에서 빼먹었다고 아래 처럼 별도로 또 추가하면 인증서 파일이 별도로 만들어진다.certb.. 2024. 6. 6. 태그(tag) 넣어 푸시하기 git tag -a v0.1 -m "Flutter 프로젝트 v0.1"git push origin --tags 2024. 6. 6. React를 위한 nginx 설치 및 세팅 nginx 설치apt-get install nginx 설정 파일 수정vi /etc/nginx/sites-enabled/default server { listen 8080 default_server; # 저장 후 스타트service nginx start . 2024. 6. 6. 우분투(ubuntu 22.04)에 mariadb 설치 우분투에 mariadb 설치 커맨드 mariadb 설치apt-get install mariadb-server 서비스 스타트service mariadb start #(만약 안되면... service mysql start) 접속 (mysql 만 입력 (Root 로 로그인 되어 있으면 => mysql -uroot -p 이런거 하지 않음)mysql 2024. 6. 6. 이전 1 2 3 4 5 6 7 8 다음